mirror of https://github.com/ARMmbed/mbed-os.git
f0cc00ef3b
The nanostack hal's critical section uses a mutex for mutual exclusion, which is nice for many use cases. But when one needs to use the critical section from interrupts, the RTX will have a assertion failure and panic. Add a configurable for mbed_lib, which can be used to enable a alternative version of critical section, which uses the underlying OS primitives, which disables the interrupts. Note: the default behavior is not changed, one needs to override the "nanostack-hal.critical-section-usable-from-interrupt" to have "true". Reason for this change is that there is a need for sending events using nanostack event queue from interrupt context, eg. from a socket callback. |
||
---|---|---|
.. | ||
mbed-client-randlib | ||
mbed-coap | ||
mbed-trace | ||
nanostack-hal-mbed-cmsis-rtos | ||
nanostack-libservice | ||
sal-stack-nanostack-eventloop |