target.h 976 B

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