Update FreeRTOS.h for portSWITCH_TASK_HOOK in unit test (#1131)

* Update FreeRTOS.h for portTASK_SWITCH_HOOK

---------

Co-authored-by: GitHub Action <action@github.com>
pull/1133/head
chinglee-iot 1 year ago committed by GitHub
parent 831035a00f
commit 0945a8ac50
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -24,6 +24,11 @@
* *
*/ */
/*
* The purpose of this header file is to cover configASSERT. struct xSTATIC_TCB is
* updated to cause configASSERT. The rest of this file should be the same as FreeRTOS.h.
*/
#ifndef INC_FREERTOS_H #ifndef INC_FREERTOS_H
#define INC_FREERTOS_H #define INC_FREERTOS_H
@ -242,14 +247,6 @@
#define INCLUDE_xTaskGetIdleTaskHandle 0 #define INCLUDE_xTaskGetIdleTaskHandle 0
#endif #endif
#ifndef traceENTER_xTaskGetIdleTaskHandleForCore
#define traceENTER_xTaskGetIdleTaskHandleForCore( xCoreID )
#endif
#ifndef traceRETURN_xTaskGetIdleTaskHandleForCore
#define traceRETURN_xTaskGetIdleTaskHandleForCore( xIdleTaskHandle )
#endif
#ifndef INCLUDE_xTaskAbortDelay #ifndef INCLUDE_xTaskAbortDelay
#define INCLUDE_xTaskAbortDelay 0 #define INCLUDE_xTaskAbortDelay 0
#endif #endif
@ -524,6 +521,10 @@
#define portSETUP_TCB( pxTCB ) ( void ) ( pxTCB ) #define portSETUP_TCB( pxTCB ) ( void ) ( pxTCB )
#endif #endif
#ifndef portTASK_SWITCH_HOOK
#define portTASK_SWITCH_HOOK( pxTCB ) ( void ) ( pxTCB )
#endif
#ifndef configQUEUE_REGISTRY_SIZE #ifndef configQUEUE_REGISTRY_SIZE
#define configQUEUE_REGISTRY_SIZE 0U #define configQUEUE_REGISTRY_SIZE 0U
#endif #endif
@ -1892,14 +1893,20 @@
#ifndef traceENTER_xTaskGetIdleTaskHandle #ifndef traceENTER_xTaskGetIdleTaskHandle
#define traceENTER_xTaskGetIdleTaskHandle() #define traceENTER_xTaskGetIdleTaskHandle()
#endif #endif
#else #endif
#ifndef traceENTER_xTaskGetIdleTaskHandle
#define traceENTER_xTaskGetIdleTaskHandle( xCoreID ) #if ( configNUMBER_OF_CORES == 1 )
#ifndef traceRETURN_xTaskGetIdleTaskHandle
#define traceRETURN_xTaskGetIdleTaskHandle( xIdleTaskHandle )
#endif #endif
#endif #endif
#ifndef traceRETURN_xTaskGetIdleTaskHandle #ifndef traceENTER_xTaskGetIdleTaskHandleForCore
#define traceRETURN_xTaskGetIdleTaskHandle( xIdleTaskHandle ) #define traceENTER_xTaskGetIdleTaskHandleForCore( xCoreID )
#endif
#ifndef traceRETURN_xTaskGetIdleTaskHandleForCore
#define traceRETURN_xTaskGetIdleTaskHandleForCore( xIdleTaskHandle )
#endif #endif
#ifndef traceENTER_vTaskStepTick #ifndef traceENTER_vTaskStepTick
@ -2126,12 +2133,12 @@
#define traceRETURN_xTaskGetCurrentTaskHandle( xReturn ) #define traceRETURN_xTaskGetCurrentTaskHandle( xReturn )
#endif #endif
#ifndef traceENTER_xTaskGetCurrentTaskHandleCPU #ifndef traceENTER_xTaskGetCurrentTaskHandleForCore
#define traceENTER_xTaskGetCurrentTaskHandleCPU( xCoreID ) #define traceENTER_xTaskGetCurrentTaskHandleForCore( xCoreID )
#endif #endif
#ifndef traceRETURN_xTaskGetCurrentTaskHandleCPU #ifndef traceRETURN_xTaskGetCurrentTaskHandleForCore
#define traceRETURN_xTaskGetCurrentTaskHandleCPU( xReturn ) #define traceRETURN_xTaskGetCurrentTaskHandleForCore( xReturn )
#endif #endif
#ifndef traceENTER_xTaskGetSchedulerState #ifndef traceENTER_xTaskGetSchedulerState

Loading…
Cancel
Save