This repository was archived by the owner on Aug 19, 2021. It is now read-only.
This repository was archived by the owner on Aug 19, 2021. It is now read-only.
equeue_mbed problem with sleep #16
Closed
Description
Hello,
I'm using Mbed SDK with this library on an NRF51822 cpu.
If I use the plain code it never dispatch any event and get blocked in equeue_sema_wait.
I did some test and finally replaced the sleep() call with __WFI() and now it works correctly.
The sleep() function code calls __WFE() that dont wake up if interrupt are disabled.
I understand sleep() is more portable across different platform, but this is a big issue in using this library with the Nordic cpu.
Any suggestion ?
Metadata
Metadata
Assignees
Labels
No labels