twali_system_internal.h 620 B

12345678910111213141516171819202122232425262728293031323334353637
  1. #ifndef TWALI_SYSTEM_INTERNAL_H_INCLUDED
  2. #define TWALI_SYSTEM_INTERNAL_H_INCLUDED
  3. #ifndef TWALI_INTERNAL
  4. #error This header file is for internal use by TWALI.
  5. #endif
  6. #include <freertos/FreeRTOS.h>
  7. #include <freertos/task.h>
  8. #include <freertos/queue.h>
  9. #ifdef __cplusplus
  10. #define LILYGO_TWATCH_2020_V1
  11. #include <TTGO.h>
  12. #endif
  13. #include "twali_system.h"
  14. #include "twali_power.h"
  15. #include "twali_screen.h"
  16. #ifdef __cplusplus
  17. extern "C" {
  18. #endif
  19. struct twali_system {
  20. TTGOClass * handle;
  21. TFT_eSPI *tft;
  22. struct twali_power * power;
  23. struct twali_screen * screen;
  24. };
  25. #ifdef __cplusplus
  26. }
  27. #endif
  28. #endif