mirror of https://github.com/ARMmbed/mbed-os.git
Renamed sleep implementation file and added DEVICE_SLEEP #defines
parent
96c0ae58f0
commit
db6792f7cc
|
@ -17,6 +17,8 @@
|
||||||
#include "cmsis.h"
|
#include "cmsis.h"
|
||||||
#include "mbed_interface.h"
|
#include "mbed_interface.h"
|
||||||
|
|
||||||
|
#if DEVICE_SLEEP
|
||||||
|
|
||||||
void sleep(void) {
|
void sleep(void) {
|
||||||
|
|
||||||
#if (DEVICE_SEMIHOST == 1)
|
#if (DEVICE_SEMIHOST == 1)
|
||||||
|
@ -63,3 +65,5 @@ void deepsleep(void) {
|
||||||
// wait for interrupt
|
// wait for interrupt
|
||||||
__WFI();
|
__WFI();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif
|
Loading…
Reference in New Issue