20 lines
353 B
C
20 lines
353 B
C
#pragma once
|
|
#include <Arduino.h>
|
|
#include "Hal.h"
|
|
|
|
struct BootOptions {
|
|
static void initPins();
|
|
|
|
BootOptions();
|
|
|
|
void waitForRelease();
|
|
|
|
bool isSetup = false;
|
|
bool isSerial = false;
|
|
bool isFlash = false;
|
|
bool lastBootWasFlash = false;
|
|
bool isSafeMode = false;
|
|
uint8_t crashCount = 0;
|
|
uint8_t resetReason = 0;
|
|
};
|