mirror of
https://github.com/meshcore-dev/MeshCore.git
synced 2026-04-20 22:13:47 +00:00
* new target env: Xiao S3 WIO repeater
This commit is contained in:
parent
07ad40cac0
commit
88f21d9aa4
5 changed files with 56 additions and 14 deletions
|
|
@ -22,10 +22,8 @@
|
|||
#include <driver/rtc_io.h>
|
||||
|
||||
class HeltecV3Board : public ESP32Board {
|
||||
uint8_t startup_reason;
|
||||
public:
|
||||
void begin() {
|
||||
startup_reason = BD_STARTUP_NORMAL;
|
||||
ESP32Board::begin();
|
||||
|
||||
esp_reset_reason_t reason = esp_reset_reason();
|
||||
|
|
@ -46,8 +44,6 @@ public:
|
|||
pinMode(PIN_ADC_CTRL, OUTPUT);
|
||||
}
|
||||
|
||||
uint8_t getStartupReason() const { return startup_reason; }
|
||||
|
||||
void enterDeepSleep(uint32_t secs, int pin_wake_btn = -1) {
|
||||
esp_sleep_pd_config(ESP_PD_DOMAIN_RTC_PERIPH, ESP_PD_OPTION_ON);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue