mbed
Fork of mbed-dev by
Diff: targets/TARGET_ONSEMI/TARGET_NCS36510/sleep.c
- Revision:
- 150:02e0a0aed4ec
- Parent:
- 149:156823d33999
- Child:
- 151:5eaa88a5bcc7
--- a/targets/TARGET_ONSEMI/TARGET_NCS36510/sleep.c Fri Oct 28 11:17:30 2016 +0100 +++ b/targets/TARGET_ONSEMI/TARGET_NCS36510/sleep.c Tue Nov 08 17:45:16 2016 +0000 @@ -44,7 +44,7 @@ #define portNVIC_SYSTICK_INT_BIT ( 1UL << 1UL ) #define portNVIC_SYSTICK_ENABLE_BIT ( 1UL << 0UL ) -void sleep(void) +void fncs36510_sleep(void) { /** Unset SLEEPDEEP (SCR) and COMA to select sleep mode */ SCB->SCR &= ~SCB_SCR_SLEEPDEEP_Msk; @@ -55,7 +55,7 @@ __WFI(); } -void deepsleep(void) +void fncs36510_deepsleep(void) { /** Set SLEEPDEEP (SCR) and unset COMA to select deep sleep mode */ SCB->SCR |= SCB_SCR_SLEEPDEEP_Msk; @@ -72,7 +72,7 @@ PMUREG->CONTROL.BITS.INT32M = 1; } -void coma(void) +void fncs36510_coma(void) { /** Set SLEEPDEEP (SCR) and set COMA to select coma mode */ SCB->SCR |= SCB_SCR_SLEEPDEEP_Msk;