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. |
||
---|---|---|
.. | ||
cs_nvm | ||
nvm | ||
.gitattributes | ||
.mbedignore | ||
README.md | ||
arm_hal_interrupt.c | ||
arm_hal_interrupt_private.h | ||
arm_hal_random.c | ||
arm_hal_timer.cpp | ||
mbed_lib.json | ||
ns_event_loop.c | ||
ns_event_loop.h | ||
ns_hal_init.c | ||
ns_hal_init.h |
README.md
nanostack-hal-mbed-cmsis-rtos
HAL porting layer for Nanostack on mbed with CMSIS-RTOS