Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: Nucleo_Hello_Encoder BLE_iBeaconScan AM1805_DEMO DISCO-F429ZI_ExportTemplate1 ... more
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;


