diff --git a/CMSIS/RTOS2/FreeRTOS/Include/cmsis_os2_control_blocks.h b/CMSIS/RTOS2/FreeRTOS/Include/cmsis_os2_control_blocks.h index ce02e881..2623af06 100644 --- a/CMSIS/RTOS2/FreeRTOS/Include/cmsis_os2_control_blocks.h +++ b/CMSIS/RTOS2/FreeRTOS/Include/cmsis_os2_control_blocks.h @@ -17,6 +17,11 @@ #define osTickRateHz (configTICK_RATE_HZ) #define osMaxDelayTicks (portMAX_DELAY) +#ifndef configSPAN_SYS_TICK_RATE_HZ +#error configSPAN_SYS_TICK_RATE_HZ must be defined to a literal integer +#endif +#define osSysTickRateHz (configSPAN_SYS_TICK_RATE_HZ) + typedef StaticTask_t osThreadControlBlock; typedef MemPool_t osMemoryPoolControlBlock; typedef StaticQueue_t osMessageQueueControlBlock; diff --git a/CMSIS/RTOS2/FreeRTOS/Include/os2_control_blocks.h b/CMSIS/RTOS2/FreeRTOS/Include/os2_control_blocks.h index e4d8d6a6..fbf6789f 100644 --- a/CMSIS/RTOS2/FreeRTOS/Include/os2_control_blocks.h +++ b/CMSIS/RTOS2/FreeRTOS/Include/os2_control_blocks.h @@ -17,6 +17,11 @@ #define osTickRateHz (configTICK_RATE_HZ) #define osMaxDelayTicks (portMAX_DELAY) +#ifndef configSPAN_SYS_TICK_RATE_HZ +#error configSPAN_SYS_TICK_RATE_HZ must be defined to a literal integer +#endif +#define osSysTickRateHz (configSPAN_SYS_TICK_RATE_HZ) + typedef MemPool_t MemoryPoolControlBlock; typedef StaticQueue_t MessageQueueControlBlock;