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: Hobbyking_Cheetah_Compact Hobbyking_Cheetah_Compact_DRV8323_14bit Hobbyking_Cheetah_Compact_DRV8323_V51_201907 HKC_MiniCheetah ... more
Fork of mbed-dev by
Diff: targets/TARGET_NXP/TARGET_LPC408X/sleep.c
- Revision:
- 160:d5399cc887bb
- Parent:
- 149:156823d33999
--- a/targets/TARGET_NXP/TARGET_LPC408X/sleep.c Tue Feb 28 17:13:35 2017 +0000 +++ b/targets/TARGET_NXP/TARGET_LPC408X/sleep.c Tue Mar 14 16:40:56 2017 +0000 @@ -17,7 +17,7 @@ #include "cmsis.h" #include "mbed_interface.h" -void sleep(void) { +void hal_sleep(void) { LPC_SC->PCON = 0x0; // SRC[SLEEPDEEP] set to 0 = sleep @@ -52,6 +52,6 @@ * * We treat a deepsleep() as a normal sleep(). */ -void deepsleep(void) { - sleep(); +void hal_deepsleep(void) { + hal_sleep(); }