target.h 891 B

123456789101112131415161718192021222324252627282930313233
  1. #pragma once
  2. #define RADIOLIB_STATIC_ONLY 1
  3. #include <RadioLib.h>
  4. #include <helpers/RadioLibWrappers.h>
  5. #include <helpers/stm32/STM32Board.h>
  6. #include <helpers/CustomSTM32WLxWrapper.h>
  7. #include <helpers/ArduinoHelpers.h>
  8. #include <helpers/SensorManager.h>
  9. class WIOE5Board : public STM32Board {
  10. public:
  11. const char* getManufacturerName() const override {
  12. return "Seeed Wio E5 mini";
  13. }
  14. uint16_t getBattMilliVolts() override {
  15. analogReadResolution(12);
  16. uint32_t raw = analogRead(PIN_A3);
  17. return raw;
  18. }
  19. };
  20. extern WIOE5Board board;
  21. extern WRAPPER_CLASS radio_driver;
  22. extern VolatileRTCClock rtc_clock;
  23. extern SensorManager sensors;
  24. bool radio_init();
  25. uint32_t radio_get_rng_seed();
  26. void radio_set_params(float freq, float bw, uint8_t sf, uint8_t cr);
  27. void radio_set_tx_power(uint8_t dbm);
  28. mesh::LocalIdentity radio_new_identity();