I am using a at91sam7s arm7 chip, with IAR toolchain and 4.5.0 freeRTOS.
I notice in definition of xTaskGetTickCount that the rturn of the count is surrouded by taskENTER_CRITICAL/taskEXIT_CRITICAL with the comment
/* Critical section required if running on a 16 bit processor. */
Presumably since the ARM is 32 bits, I can replace this with a simple return xTickCount? Can I ‘automate’ this by using the #if (sizeof(portBASE_TYPE) >= 4) or is this likely to fail somewhere else?
Hmm I find that IAR won’t accept sizeof as a preprocessor command! Keep looking!
Many thanks in advance
Hitek Power Ltd, England