target.h 800 B

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