Now I'm learn freeRTOS api " taskENTER_CRITICAL()" in FreeRTOS V9.0.0 reference manual. I find such description for this API: "FreeRTOS API functions must not be called from within a critical section" Why? why we can't call freertos api whthin a critical section? like below show:
taskENTER_CRITICAL();
do_something..
xQueueReceive(); // ?? why can't call this api within this critical setction ??
taskEXIT_CRITICAL();
Hope response from anyone, Thanks!
BR//David Wang