CMSIS API for "taskENTER_CRITICAL()" in FreeRTOS

Viewed 658

As I know, in FreeRTOS, these are two methods taskENTER_CRITICAL() and taskEXIT_CRITICAL() which are used to enter and exit the critical section. Is there any wrapper for these two methods in the CMSIS API?

Just like the osKernelStart() is the CMSIS API to wrap the vTaskStartScheduler() in the FreeRTOS.

1 Answers

At least in v2 there is
int32_t osKernelLock(void)

I haven't found something similar in v1.

CMSIS-RTOS2

Related