mbed-os/features/FEATURE_COMMON_PAL/nanostack-hal-mbed-cmsis-rtos
Tero Jääskö f0cc00ef3b nanostack-hal: add alternative critical section implementation
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.
2018-02-27 17:12:55 +02:00
..
cs_nvm Break apart client and nanostack dependencies 2016-07-26 00:00:20 -05:00
nvm Break apart client and nanostack dependencies 2016-07-26 00:00:20 -05:00
.gitattributes Break apart client and nanostack dependencies 2016-07-26 00:00:20 -05:00
.mbedignore Break apart client and nanostack dependencies 2016-07-26 00:00:20 -05:00
README.md Break apart client and nanostack dependencies 2016-07-26 00:00:20 -05:00
arm_hal_interrupt.c nanostack-hal: add alternative critical section implementation 2018-02-27 17:12:55 +02:00
arm_hal_interrupt_private.h Break apart client and nanostack dependencies 2016-07-26 00:00:20 -05:00
arm_hal_random.c Remove IPv6 link time dependency on an RF phy 2016-08-31 15:24:51 -05:00
arm_hal_timer.cpp Use shared event queue for timer 2017-09-01 13:26:09 +03:00
mbed_lib.json nanostack-hal: add alternative critical section implementation 2018-02-27 17:12:55 +02:00
ns_event_loop.c nanostack-hal: remove connection from event loop init and dispatch thread 2018-02-23 15:37:33 +02:00
ns_event_loop.h nanostack-hal: modify eventloop to allow running it in a main thread 2018-02-23 15:37:32 +02:00
ns_hal_init.c nanostack-hal: modify eventloop to allow running it in a main thread 2018-02-23 15:37:32 +02:00
ns_hal_init.h Break apart client and nanostack dependencies 2016-07-26 00:00:20 -05:00

README.md

nanostack-hal-mbed-cmsis-rtos

HAL porting layer for Nanostack on mbed with CMSIS-RTOS