summaryrefslogtreecommitdiff
path: root/code/esp32/components/eos/include/power.h
diff options
context:
space:
mode:
Diffstat (limited to 'code/esp32/components/eos/include/power.h')
-rw-r--r--code/esp32/components/eos/include/power.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/code/esp32/components/eos/include/power.h b/code/esp32/components/eos/include/power.h
new file mode 100644
index 0000000..3f44507
--- /dev/null
+++ b/code/esp32/components/eos/include/power.h
@@ -0,0 +1,13 @@
+#include <stdint.h>
+
+#define EOS_PWR_MTYPE_BUTTON 0
+
+#define EOS_PWR_WAKE_BTN 1
+#define EOS_PWR_WAKE_NET 2
+#define EOS_PWR_WAKE_MSG 3
+#define EOS_PWR_WAKE_UART 4
+
+void eos_power_init(void);
+void eos_power_sleep(void);
+void eos_power_wake(uint8_t source);
+void eos_power_1v8rdy(void); \ No newline at end of file