-
Notifications
You must be signed in to change notification settings - Fork 3k
Closed
Description
Now that RTX5 is going to get switched on, and mutexes are no longer disabled, I encountered the following:
mbed-os/features/FEATURE_COMMON_PAL/nanostack-hal-mbed-cmsis-rtos/arm_hal_interrupt.c
Line 30 in f31ea01
osMutexAcquire(critical_mutex_id, osWaitForever); |
In its documentation, Nanostack defines the enter_ & exit_critical functions as turning on and off global interrupts. This works when calling the stack from an ISR context, such as a radio receive callback in an RF SoC.
However, now that there is a mutex in the way, this no longer works. Nowhere in the documentation specifies that radio drivers should be thread- and mutex safe. And since nanostack already has its own eventOS, why require it?
Metadata
Metadata
Assignees
Labels
No labels