mbed
Fork of mbed-dev by
Diff: targets/TARGET_NORDIC/TARGET_NRF5/sleep.c
- Revision:
- 165:e614a9f1c9e2
- Parent:
- 160:d5399cc887bb
--- a/targets/TARGET_NORDIC/TARGET_NRF5/sleep.c Wed May 10 12:06:41 2017 +0100 +++ b/targets/TARGET_NORDIC/TARGET_NRF5/sleep.c Fri May 26 12:39:01 2017 +0100 @@ -33,7 +33,7 @@ // the processor from disabled interrupts. SCB->SCR |= SCB_SCR_SEVONPEND_Msk; -#ifdef NRF52 +#if defined(NRF52) || defined(NRF52840_XXAA) /* Clear exceptions and PendingIRQ from the FPU unit */ __set_FPSCR(__get_FPSCR() & ~(FPU_EXCEPTION_MASK)); (void) __get_FPSCR(); @@ -41,7 +41,7 @@ #endif // If the SoftDevice is enabled, its API must be used to go to sleep. - if (softdevice_handler_isEnabled()) { + if (softdevice_handler_is_enabled()) { sd_power_mode_set(NRF_POWER_MODE_LOWPWR); sd_app_evt_wait(); } else {