twali_system_internal.h 665 B

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