From 375ac3b0c7e9ed8b2d2d0fc4d0700a23c8865836 Mon Sep 17 00:00:00 2001 From: Uros Majstorovic Date: Sun, 24 May 2020 00:00:38 +0200 Subject: esp32 deep sleep implemented --- code/esp32/components/eos/include/power.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'code/esp32/components/eos/include/power.h') diff --git a/code/esp32/components/eos/include/power.h b/code/esp32/components/eos/include/power.h index 8a35a04..0a57b19 100644 --- a/code/esp32/components/eos/include/power.h +++ b/code/esp32/components/eos/include/power.h @@ -2,12 +2,19 @@ #define EOS_PWR_MTYPE_BUTTON 0 +#define EOS_PWR_WAKE_RST 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 +#define EOS_PWR_SMODE_LIGHT 1 +#define EOS_PWR_SMODE_DEEP 2 + void eos_power_init(void); + +void eos_power_wait4init(void); +uint8_t eos_power_wakeup_cause(void); void eos_power_sleep(void); void eos_power_wake(uint8_t source); void eos_power_net_ready(void); \ No newline at end of file -- cgit v1.2.3