mirror of https://github.com/ARMmbed/mbed-os.git
Put system to sleep when going idle
parent
ade6722707
commit
c6897c58dc
|
@ -21,6 +21,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "rtos/rtos_idle.h"
|
#include "rtos/rtos_idle.h"
|
||||||
|
#include "sleep_api.h"
|
||||||
|
|
||||||
static void default_idle_hook(void)
|
static void default_idle_hook(void)
|
||||||
{
|
{
|
||||||
|
@ -28,7 +29,7 @@ static void default_idle_hook(void)
|
||||||
Unfortunately, this usually requires disconnecting the interface chip (debugger).
|
Unfortunately, this usually requires disconnecting the interface chip (debugger).
|
||||||
This can be done, but it would break the local file system.
|
This can be done, but it would break the local file system.
|
||||||
*/
|
*/
|
||||||
// sleep();
|
sleep();
|
||||||
}
|
}
|
||||||
static void (*idle_hook_fptr)(void) = &default_idle_hook;
|
static void (*idle_hook_fptr)(void) = &default_idle_hook;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue