Closed edwardalee closed 2 years ago
Does is suffice to enable interrupts only during _lf_nanosleep
as is done currently in #11, or should we have them enabled by default and disable them only when accessing the event queue or the _lf_interrupted
variable?
A call to
lf_schedule()
in an ISR results in an error like the following:The reason is that in
lf_nrf52_support.c
, there is a variableINT_RAISED
that needs to get set when an interrupt occurs. For now, maybe we can set this in the user code, but then it needs to be reset and mutex will be needed.