target.h 932 B

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