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 b75c51a commit 543660fCopy full SHA for 543660f
hal/mbed_sleep_manager.c
@@ -78,4 +78,25 @@ void sleep_manager_sleep_auto(void)
78
core_util_critical_section_exit();
79
}
80
81
+#else
82
+
83
+// locking is valid only if DEVICE_SLEEP is defined
84
+// we provide empty implementation
85
86
+void sleep_manager_lock_deep_sleep(void)
87
+{
88
89
+}
90
91
+void sleep_manager_unlock_deep_sleep(void)
92
93
94
95
96
+bool sleep_manager_can_deep_sleep(void)
97
98
+ // no sleep implemented
99
+ return false;
100
101
102
#endif
0 commit comments