2021-03-29 08:10:55 +00:00
|
|
|
#pragma once
|
2023-02-19 17:40:16 +00:00
|
|
|
#include <Arduino.h>
|
2021-03-29 08:10:55 +00:00
|
|
|
|
|
|
|
struct BootOptions {
|
|
|
|
static void initPins();
|
|
|
|
|
|
|
|
BootOptions();
|
|
|
|
|
|
|
|
void waitForRelease();
|
2023-12-11 06:54:08 +00:00
|
|
|
void forceSafeMode();
|
2021-03-29 08:10:55 +00:00
|
|
|
|
|
|
|
bool isSetup = false;
|
|
|
|
bool isSerial = false;
|
|
|
|
bool isFlash = false;
|
|
|
|
bool lastBootWasFlash = false;
|
2021-04-10 18:10:25 +00:00
|
|
|
bool isSafeMode = false;
|
2023-02-19 17:40:16 +00:00
|
|
|
uint8_t crashCount = 0;
|
|
|
|
uint8_t resetReason = 0;
|
2021-03-29 08:10:55 +00:00
|
|
|
};
|