FreeRTOS / Lab-Project-FreeRTOS-POSIX

This repository contains FreeRTOS+POSIX source code, which could be consumed as a submodule.
MIT License
95 stars 60 forks source link

Why FreeRTOS-POSIX's implementation only with xSemaphoreCreateMutexStatic, do not has implementation with xSemaphoreCreateMutex? #15

Closed DonghuaZheng closed 2 years ago

DonghuaZheng commented 2 years ago

The latest FreeRTOS-POSIX code was implemented with xSemaphoreCreateMutexStatic, which need FreeRTOS configure the value of configSUPPORT_STATIC_ALLOCATION to 1, but is 0 defaultly. FreeRTOS-POSIX doesn't has any cue that notify users to configure configSUPPORT_STATIC_ALLOCATION to 1.

I wonder for what considerations that FreeRTOS-POSIX doesn't implement with xSemaphoreCreateMutex.

Best wish!Thanks!