From bb24892ad431861dfb6236e47d674e20fea60850 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Tue, 18 Jun 2019 11:10:55 +0200 Subject: bsp/atsam: Use proper API --- bsps/arm/atsam/start/power.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/bsps/arm/atsam/start/power.c b/bsps/arm/atsam/start/power.c index f9b5a3925d..c32dbd3c20 100644 --- a/bsps/arm/atsam/start/power.c +++ b/bsps/arm/atsam/start/power.c @@ -18,9 +18,6 @@ #include -/* SCR Sleep deep bit */ -#define SCR_SLEEPDEEP (1u << 2) - void atsam_power_change_state( const atsam_power_control *controls, size_t n, @@ -92,7 +89,7 @@ void atsam_power_handler_sleep_mode(const atsam_power_control *control, atsam_po /* Enable Low Power Mode in the Fast Startup Mode Register */ PMC->PMC_FSMR &= (uint32_t)~PMC_FSMR_LPM; /* Do not set deep sleep, but "normal" sleep */ - SCB->SCR &= (uint32_t)~SCR_SLEEPDEEP; + SCB->SCR &= ~SCB_SCR_SLEEPDEEP_Msk; __asm__ volatile ("wfi"); break; -- cgit v1.2.3