We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9e24117 commit 39ad07fCopy full SHA for 39ad07f
rtos/rtos_idle.c
@@ -21,14 +21,19 @@
21
*/
22
23
#include "rtos/rtos_idle.h"
24
+#include "sleep_api.h"
25
26
static void default_idle_hook(void)
27
{
28
/* Sleep: ideally, we should put the chip to sleep.
- Unfortunately, this usually requires disconnecting the interface chip (debugger).
29
- This can be done, but it would break the local file system.
+ Unfortunately, this usually requires disconnecting the interface chip (debugger).
30
+ This can be done, but it would break the local file system.
31
- // sleep();
32
+#ifdef NDEBUG
33
+#if DEVICE_SLEEP
34
+ sleep();
35
+#endif // DEVICE_SLEEP
36
+#endif // NDEBUG
37
}
38
static void (*idle_hook_fptr)(void) = &default_idle_hook;
39
0 commit comments