mirror of
https://github.com/liquidraver/ZephCore.git
synced 2026-09-05 10:34:18 +00:00
28 lines
816 B
C++
28 lines
816 B
C++
/*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
* Zephyr MainBoard base - nRF52840 DK and generic
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <mesh/Board.h>
|
|
|
|
namespace mesh {
|
|
|
|
class ZephyrBoard : public MainBoard {
|
|
public:
|
|
uint16_t getBattMilliVolts() override;
|
|
float getMCUTemperature() override;
|
|
const char *getManufacturerName() const override;
|
|
void onBeforeTransmit() override;
|
|
void onAfterTransmit() override;
|
|
void reboot() override;
|
|
void rebootToBootloader(); /* Reboot into UF2 mass storage bootloader */
|
|
bool getBootloaderVersion(char *version, size_t max_len) override;
|
|
bool startOTAUpdate(const char *id, char reply[]) override; /* Reboot into BLE OTA DFU */
|
|
void clearBootloaderMagic(); /* Clear stale GPREGRET values at startup */
|
|
uint8_t getStartupReason() const override;
|
|
};
|
|
|
|
} /* namespace mesh */
|