mirror of
https://github.com/meshcore-dev/MeshCore.git
synced 2026-05-15 16:45:21 +00:00
31 lines
780 B
C++
31 lines
780 B
C++
#pragma once
|
|
|
|
#define RADIOLIB_STATIC_ONLY 1
|
|
#include <RadioLib.h>
|
|
#include <helpers/radiolib/RadioLibWrappers.h>
|
|
#include <helpers/stm32/STM32Board.h>
|
|
#include <helpers/radiolib/CustomSTM32WLxWrapper.h>
|
|
#include <helpers/ArduinoHelpers.h>
|
|
#include <helpers/SensorManager.h>
|
|
|
|
class WIOE5Board : public STM32Board {
|
|
public:
|
|
const char* getManufacturerName() const override {
|
|
return "Seeed Wio E5 Dev Board";
|
|
}
|
|
|
|
// Just returns ADC value for now to test adc
|
|
uint16_t getBattMilliVolts() override {
|
|
uint32_t raw = analogRead(PIN_A3);
|
|
return raw;
|
|
}
|
|
};
|
|
|
|
extern WIOE5Board board;
|
|
extern WRAPPER_CLASS radio_driver;
|
|
extern VolatileRTCClock rtc_clock;
|
|
extern SensorManager sensors;
|
|
|
|
bool radio_init();
|
|
mesh::LocalIdentity radio_new_identity();
|