Skip to content

Commit c6897c5

Browse files
committed
Put system to sleep when going idle
1 parent ade6722 commit c6897c5

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

rtos/rtos_idle.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,15 @@
2121
*/
2222

2323
#include "rtos/rtos_idle.h"
24+
#include "sleep_api.h"
2425

2526
static void default_idle_hook(void)
2627
{
2728
/* Sleep: ideally, we should put the chip to sleep.
28-
Unfortunately, this usually requires disconnecting the interface chip (debugger).
29-
This can be done, but it would break the local file system.
29+
Unfortunately, this usually requires disconnecting the interface chip (debugger).
30+
This can be done, but it would break the local file system.
3031
*/
31-
// sleep();
32+
sleep();
3233
}
3334
static void (*idle_hook_fptr)(void) = &default_idle_hook;
3435

0 commit comments

Comments
 (0)