mirror of
https://github.com/espressif/openthread.git
synced 2026-08-30 22:09:54 +00:00
[nRF52840] prevent nRF52840 platform from permanent sleeping (#2345)
This commit is contained in:
committed by
Jonathan Hui
parent
02c876ef62
commit
e22cca3ffe
@@ -211,6 +211,13 @@ static void AlarmStartAt(uint32_t aT0, uint32_t aDt, AlarmIndex aIndex)
|
||||
if (AlarmShallStrike(now, aIndex))
|
||||
{
|
||||
HandleCompareMatch(aIndex, true);
|
||||
|
||||
/**
|
||||
* Normally ISR sets event flag automatically.
|
||||
* Here we are calling HandleCompareMatch explicitly and no ISR will be fired.
|
||||
* To prevent possible permanent sleep on next WFE we have to set event flag.
|
||||
*/
|
||||
__SEV();
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user