Skip to content

Commit db6792f

Browse files
author
Brian Daniels
committed
Renamed sleep implementation file and added DEVICE_SLEEP #defines
1 parent 96c0ae5 commit db6792f

File tree

1 file changed

+4
-0
lines changed
  • libraries/mbed/targets/hal/TARGET_NXP/TARGET_LPC11U6X

1 file changed

+4
-0
lines changed

libraries/mbed/targets/hal/TARGET_NXP/TARGET_LPC11U6X/sleep_api.c renamed to libraries/mbed/targets/hal/TARGET_NXP/TARGET_LPC11U6X/sleep.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
#include "cmsis.h"
1818
#include "mbed_interface.h"
1919

20+
#if DEVICE_SLEEP
21+
2022
void sleep(void) {
2123

2224
#if (DEVICE_SEMIHOST == 1)
@@ -63,3 +65,5 @@ void deepsleep(void) {
6365
// wait for interrupt
6466
__WFI();
6567
}
68+
69+
#endif

0 commit comments

Comments
 (0)