twali_system_internal.h 692 B

12345678910111213141516171819202122232425262728293031323334353637383940
  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_message.h"
  14. #include "upubsub.h"
  15. #include "twali_system.h"
  16. #include "twali_power.h"
  17. #include "twali_screen.h"
  18. #ifdef __cplusplus
  19. extern "C" {
  20. #endif
  21. struct twali_system {
  22. TTGOClass * handle;
  23. TFT_eSPI *tft;
  24. struct twali_power * power;
  25. struct twali_screen * screen;
  26. struct upubsub bus;
  27. };
  28. #ifdef __cplusplus
  29. }
  30. #endif
  31. #endif