deep sleep fixes
This commit is contained in:
1 parent
bc034b1a67
commit
221fde0026
4 files changed
+3
-25
No files matched your search
+1
-2
@@ -5,6 +5,7 @@
|
||||
#include <driver/adc.h>
|
||||
#include <esp_adc_cal.h>
|
||||
#include "i2c.h"
|
||||
#include "reset.h"
|
||||
|
||||
#define DEFAULT_VREF 1100 // tbd: use adc2_vref_to_gpio() for better estimate
|
||||
#define NO_OF_SAMPLES 64 // we do some multisampling to get better values
|
||||
@@ -12,8 +13,6 @@
|
||||
uint16_t read_voltage(void);
|
||||
void calibrate_voltage(void);
|
||||
bool batt_sufficient(void);
|
||||
void enter_deepsleep(const int wakeup_sec, const gpio_num_t wakeup_gpio);
|
||||
int64_t exit_deepsleep(void);
|
||||
|
||||
#ifdef HAS_PMU
|
||||
|
||||
|
||||
@@ -8,6 +8,5 @@
|
||||
void do_reset(bool warmstart);
|
||||
void do_after_reset(int reason);
|
||||
void enter_deepsleep(const int wakeup_sec, const gpio_num_t wakeup_gpio);
|
||||
int64_t exit_deepsleep(void);
|
||||
|
||||
#endif // _RESET_H
|
||||
Reference in new issue
Block a user