Do we have to manually call sd_nvic_ClearPendingIRQ(SWI2_IRQn)
in thread mode event after calling sd_app_evt_wait()
?
edited: typo.
Do we have to manually call sd_nvic_ClearPendingIRQ(SWI2_IRQn)
in thread mode event after calling sd_app_evt_wait()
?
edited: typo.
Hi tralamazza,
To be consistent with SDK libraries you should call 'sd_nvic_ClearPendingIRQ(SD_EVT_IRQn) just after 'sd_app_evt_wait()'
/Aryan
Using SD_EVT_IRQn
instead of SWI2_IRQn
is nicer, thanks for the tip. The official softdevice_handler.c
should use it.
Using SD_EVT_IRQn
instead of SWI2_IRQn
is nicer, thanks for the tip. The official softdevice_handler.c
should use it.