blob: 2215907c213828dc52674a183d54ff5fd0bcd071 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#include <stdint.h>
#define EOS_PWR_MTYPE_BUTTON 1
#define EOS_PWR_WAKE_RST 0
#define EOS_PWR_WAKE_BTN 1
#define EOS_PWR_WAKE_UART 2
#define EOS_PWR_WAKE_NET 3
#define EOS_PWR_WAKE_NETQ 4
#define EOS_PWR_WAKE_UNDEF 5
#define EOS_PWR_SMODE_LIGHT 1
#define EOS_PWR_SMODE_DEEP 2
void eos_power_init(void);
void eos_power_wait4init(void);
void eos_power_wait4wake(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);
|