[nRF52840] prevent nRF52840 platform from permanent sleeping (#2345)

This commit is contained in:
Kamil Sroka
2017-11-16 08:56:37 +00:00
committed by Jonathan Hui
parent 02c876ef62
commit e22cca3ffe
+7
View File
@@ -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
{