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 cb4e9b3 commit fcdb043Copy full SHA for fcdb043
hal/mbed_sleep_manager.c
@@ -68,4 +68,25 @@ void sleep_manager_sleep_auto(void)
68
core_util_critical_section_exit();
69
}
70
71
+#else
72
+
73
+// locking is valid only if DEVICE_SLEEP is defined
74
+// we provide empty implementation
75
76
+void sleep_manager_lock_deep_sleep(void)
77
+{
78
79
+}
80
81
+void sleep_manager_unlock_deep_sleep(void)
82
83
84
85
86
+bool sleep_manager_can_deep_sleep(void)
87
88
+ // no sleep implemented
89
+ return false;
90
91
92
#endif
0 commit comments