summaryrefslogtreecommitdiff
path: root/code/esp32/components/eos/include/power.h
blob: 3f445073b565834763791ce1de1d6c1e6fde4efc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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);