Xtensa Port Support for static only memory allocation

When not using any dynamic memory allocations the following file needs the following change (if there is a better way to enter these requests please let me know)

#define configSUPPORT_STATIC_ALLOCATION 1
#define configSUPPORT_DYNAMIC_ALLOCATION 0

portclib.c

//-----------------------------------------------------------------------------
// Init lock.
//-----------------------------------------------------------------------------
#if( configSUPPORT_STATIC_ALLOCATION == 1 )
static StaticQueue_t staticSemaphore;
#endif
void
_Mtxinit(_Rmtx * mtx)
{
#if( configSUPPORT_STATIC_ALLOCATION == 1 )
*mtx = xSemaphoreCreateRecursiveMutexStatic(&staticSemaphore);
#else
*mtx = xSemaphoreCreateRecursiveMutex();
#endif
}

Hi Stephen,

Thank you for this change. It would be great if you can open this as a pull request to the FreeRTOS kernel git repository. Here is some guidance in our contributing document FreeRTOS-Kernel/CONTRIBUTING.md at main · FreeRTOS/FreeRTOS-Kernel · GitHub. If you need assistance, please ping me here or in your PR!

Thanks,

Carl

Hi Carl. I will take a stab at this. I have another issue as well that I’ll be reporting.