target.h 720 B

12345678910111213141516171819202122232425262728
  1. #pragma once
  2. #define RADIOLIB_STATIC_ONLY 1
  3. #include <RadioLib.h>
  4. #include <helpers/RadioLibWrappers.h>
  5. #include <helpers/nrf52/TechoBoard.h>
  6. #include <helpers/CustomSX1262Wrapper.h>
  7. #include <helpers/AutoDiscoverRTCClock.h>
  8. #include <helpers/SensorManager.h>
  9. #ifdef DISPLAY_CLASS
  10. #include <helpers/ui/GxEPDDisplay.h>
  11. #endif
  12. extern TechoBoard board;
  13. extern WRAPPER_CLASS radio_driver;
  14. extern AutoDiscoverRTCClock rtc_clock;
  15. extern SensorManager sensors;
  16. #ifdef DISPLAY_CLASS
  17. extern DISPLAY_CLASS display;
  18. #endif
  19. bool radio_init();
  20. uint32_t radio_get_rng_seed();
  21. void radio_set_params(float freq, float bw, uint8_t sf, uint8_t cr);
  22. void radio_set_tx_power(uint8_t dbm);
  23. mesh::LocalIdentity radio_new_identity();