diff --git a/FreeRTOS/Test/CMock/tasks/tasks_freertos/FreeRTOS.h b/FreeRTOS/Test/CMock/tasks/tasks_freertos/FreeRTOS.h index 92648a8cbf..7c3674ad3f 100644 --- a/FreeRTOS/Test/CMock/tasks/tasks_freertos/FreeRTOS.h +++ b/FreeRTOS/Test/CMock/tasks/tasks_freertos/FreeRTOS.h @@ -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 #define INC_FREERTOS_H @@ -242,14 +247,6 @@ #define INCLUDE_xTaskGetIdleTaskHandle 0 #endif -#ifndef traceENTER_xTaskGetIdleTaskHandleForCore - #define traceENTER_xTaskGetIdleTaskHandleForCore( xCoreID ) -#endif - -#ifndef traceRETURN_xTaskGetIdleTaskHandleForCore - #define traceRETURN_xTaskGetIdleTaskHandleForCore( xIdleTaskHandle ) -#endif - #ifndef INCLUDE_xTaskAbortDelay #define INCLUDE_xTaskAbortDelay 0 #endif @@ -524,6 +521,10 @@ #define portSETUP_TCB( pxTCB ) ( void ) ( pxTCB ) #endif +#ifndef portTASK_SWITCH_HOOK + #define portTASK_SWITCH_HOOK( pxTCB ) ( void ) ( pxTCB ) +#endif + #ifndef configQUEUE_REGISTRY_SIZE #define configQUEUE_REGISTRY_SIZE 0U #endif @@ -1892,14 +1893,20 @@ #ifndef traceENTER_xTaskGetIdleTaskHandle #define traceENTER_xTaskGetIdleTaskHandle() #endif -#else - #ifndef traceENTER_xTaskGetIdleTaskHandle - #define traceENTER_xTaskGetIdleTaskHandle( xCoreID ) +#endif + +#if ( configNUMBER_OF_CORES == 1 ) + #ifndef traceRETURN_xTaskGetIdleTaskHandle + #define traceRETURN_xTaskGetIdleTaskHandle( xIdleTaskHandle ) #endif #endif -#ifndef traceRETURN_xTaskGetIdleTaskHandle - #define traceRETURN_xTaskGetIdleTaskHandle( xIdleTaskHandle ) +#ifndef traceENTER_xTaskGetIdleTaskHandleForCore + #define traceENTER_xTaskGetIdleTaskHandleForCore( xCoreID ) +#endif + +#ifndef traceRETURN_xTaskGetIdleTaskHandleForCore + #define traceRETURN_xTaskGetIdleTaskHandleForCore( xIdleTaskHandle ) #endif #ifndef traceENTER_vTaskStepTick @@ -2126,12 +2133,12 @@ #define traceRETURN_xTaskGetCurrentTaskHandle( xReturn ) #endif -#ifndef traceENTER_xTaskGetCurrentTaskHandleCPU - #define traceENTER_xTaskGetCurrentTaskHandleCPU( xCoreID ) +#ifndef traceENTER_xTaskGetCurrentTaskHandleForCore + #define traceENTER_xTaskGetCurrentTaskHandleForCore( xCoreID ) #endif -#ifndef traceRETURN_xTaskGetCurrentTaskHandleCPU - #define traceRETURN_xTaskGetCurrentTaskHandleCPU( xReturn ) +#ifndef traceRETURN_xTaskGetCurrentTaskHandleForCore + #define traceRETURN_xTaskGetCurrentTaskHandleForCore( xReturn ) #endif #ifndef traceENTER_xTaskGetSchedulerState