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
|
|
@ -8,10 +8,24 @@
|
|||
#include <rom/rtc.h>
|
||||
#include <sys/time.h>
|
||||
|
||||
class ESP32Board : public mesh::MainBoard { // abstract class
|
||||
class ESP32Board : public mesh::MainBoard {
|
||||
protected:
|
||||
uint8_t startup_reason;
|
||||
|
||||
public:
|
||||
void begin() {
|
||||
// for future use, sub-classes SHOULD call this from their begin()
|
||||
startup_reason = BD_STARTUP_NORMAL;
|
||||
}
|
||||
|
||||
uint8_t getStartupReason() const override { return startup_reason; }
|
||||
|
||||
uint16_t getBattMilliVolts() override {
|
||||
return 0; // not supported
|
||||
}
|
||||
|
||||
const char* getManufacturerName() const override {
|
||||
return "Generic ESP32";
|
||||
}
|
||||
|
||||
void reboot() override {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue