2019-10-20 20:05:13 +02:00
|
|
|
#ifndef _RESET_H
|
|
|
|
#define _RESET_H
|
|
|
|
|
|
|
|
#include <driver/rtc_io.h>
|
|
|
|
#include <rom/rtc.h>
|
2020-03-29 18:08:52 +02:00
|
|
|
|
2019-10-20 20:05:13 +02:00
|
|
|
#include "i2c.h"
|
2020-03-29 18:08:52 +02:00
|
|
|
#include "lorawan.h"
|
|
|
|
#include "display.h"
|
|
|
|
#include "power.h"
|
2019-10-20 20:05:13 +02:00
|
|
|
|
|
|
|
void do_reset(bool warmstart);
|
2020-12-09 20:37:03 +01:00
|
|
|
void do_after_reset(void);
|
|
|
|
void enter_deepsleep(const uint64_t wakeup_sec, const gpio_num_t wakeup_gpio);
|
2019-10-20 20:05:13 +02:00
|
|
|
|
2020-12-19 12:27:07 +01:00
|
|
|
extern RTC_DATA_ATTR unsigned long RTC_millis;
|
|
|
|
|
2019-10-20 20:05:13 +02:00
|
|
|
#endif // _RESET_H
|