ESP32-PaxCounter/include/reset.h

18 lines
393 B
C
Raw Normal View History

#ifndef _RESET_H
#define _RESET_H
#include <driver/rtc_io.h>
#include <rom/rtc.h>
2020-03-29 18:08:52 +02:00
#include "i2c.h"
2020-03-29 18:08:52 +02:00
#include "lorawan.h"
#include "display.h"
#include "power.h"
void do_reset(bool warmstart);
void do_after_reset(void);
2020-12-30 22:07:50 +01:00
void enter_deepsleep(const uint64_t wakeup_sec = 60,
const gpio_num_t wakeup_gpio = GPIO_NUM_MAX);
2020-12-21 22:11:41 +01:00
unsigned long long uptime(void);
2020-12-19 12:27:07 +01:00
#endif // _RESET_H