[riot-notifications] [RIOT-OS/RIOT] RDM: The 802.15.4 Radio HAL (#13943)
notifications at github.com
Mon May 18 15:53:00 CEST 2020
> hmmmm who calls `hal_event_callback` if that thread is already locked by a mutex?
The `hal_event_callback` is called by the driver; either in IRQ context or the context of the thread running the bottom half processor.
Note: Regardless of implementation details: If the bottom half processor calls a function that does block (without an strict upper bound on the blocking time), it would loose its ability to perform interrupt processing deferred to thread context in a timely manner. So except for `spi_*()` functions, it will not call any blocking function. (And the application developer must take care that the SPI bus of the network device(s) is not shared with slow SPI hardware.)
The blocking HAL API is only usable in case the layer above the driver is running in a separate thread.
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the notifications