Renamed sleep implementation file and added DEVICE_SLEEP #defines

pull/938/head
Brian Daniels 2015-02-26 11:08:52 -06:00
parent 96c0ae58f0
commit db6792f7cc
1 changed files with 4 additions and 0 deletions

View File

@ -17,6 +17,8 @@
#include "cmsis.h"
#include "mbed_interface.h"
#if DEVICE_SLEEP
void sleep(void) {
#if (DEVICE_SEMIHOST == 1)
@ -63,3 +65,5 @@ void deepsleep(void) {
// wait for interrupt
__WFI();
}
#endif