mirror of https://github.com/ARMmbed/mbed-os.git
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. |
||
|---|---|---|
| .. | ||
| FEATURE_BLE | ||
| FEATURE_COMMON_PAL | ||
| FEATURE_LWIP/lwip-interface | ||
| FEATURE_UVISOR | ||
| TESTS/filesystem | ||
| filesystem | ||
| frameworks | ||
| lorawan | ||
| mbedtls | ||
| nanostack | ||
| netsocket | ||
| storage/FEATURE_STORAGE | ||
| unsupported | ||