static StaticQueue_t xStaticQueue;
I couldn’t find the data type of StaticQueue_t .
The reference of this declaration:
QueueHandle_t xQueueCreateStatic( UBaseType_t uxQueueLength,
StaticQueue_t *pxQueueBuffer );
I have done this:
#define configSUPPORT_STATIC_ALLOCATION 1
as well as this
#define configSUPPORT_STATIC_ALLOCATION CONFIG_FREERTOS_SUPPORT_STATIC_ALLOCATION
The last one I got it by search engine.
None of them solved the error.
Are you sure that the correct
FreeRTOSConfig.h is getting picked? In the file where you get this identifier missing error, add the following code:
#if( configSUPPORT_STATIC_ALLOCATION == 1 )
#error Test to see if static allocation is enabled.
If the above #error is triggered, then we know that
configSUPPORT_STATIC_ALLOCATION is configured correctly.
I updated from version 8 to version 10 and I added the callback function code from FreeRTOS website. Then I was able to compile completely and the program worked as expected.
The callback function: