test
Fork of mbed-dev by
Diff: targets/TARGET_Freescale/TARGET_K20XX/sleep.c
- Revision:
- 160:d5399cc887bb
- Parent:
- 149:156823d33999
--- a/targets/TARGET_Freescale/TARGET_K20XX/sleep.c Tue Feb 28 17:13:35 2017 +0000 +++ b/targets/TARGET_Freescale/TARGET_K20XX/sleep.c Tue Mar 14 16:40:56 2017 +0000 @@ -17,7 +17,7 @@ #include "cmsis.h" //Normal wait mode -void sleep(void) +void hal_sleep(void) { SMC->PMPROT = SMC_PMPROT_AVLLS_MASK | SMC_PMPROT_ALLS_MASK | SMC_PMPROT_AVLP_MASK; @@ -27,7 +27,7 @@ } //Very low-power stop mode -void deepsleep(void) +void hal_deepsleep(void) { //Check if ADC is enabled and HS mode is set, if yes disable it (lowers power consumption by 60uA) uint8_t ADC_HSC = 0;