lv_port_disp.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. /**
  2. * @file lv_port_disp_templ.h
  3. *
  4. */
  5. /*Copy this file as "lv_port_disp.h" and set this value to "1" to enable content*/
  6. #if 1
  7. #ifndef LV_PORT_DISP_TEMPL_H
  8. #define LV_PORT_DISP_TEMPL_H
  9. #ifdef __cplusplus
  10. extern "C" {
  11. #endif
  12. /*********************
  13. * INCLUDES
  14. *********************/
  15. #if defined(LV_LVGL_H_INCLUDE_SIMPLE)
  16. #include "lvgl.h"
  17. #else
  18. #include "../lvgl.h"
  19. #endif
  20. #include "luat_lcd.h"
  21. /*********************
  22. * DEFINES
  23. *********************/
  24. /**********************
  25. * TYPEDEFS
  26. **********************/
  27. /**********************
  28. * GLOBAL PROTOTYPES
  29. **********************/
  30. /* Initialize low level display driver */
  31. void lv_port_disp_init(luat_lcd_conf_t* lcd_conf);
  32. /* Enable updating the screen (the flushing process) when disp_flush() is called by LVGL
  33. */
  34. void disp_enable_update(void);
  35. /* Disable updating the screen (the flushing process) when disp_flush() is called by LVGL
  36. */
  37. void disp_disable_update(void);
  38. /**********************
  39. * MACROS
  40. **********************/
  41. #ifdef __cplusplus
  42. } /*extern "C"*/
  43. #endif
  44. #endif /*LV_PORT_DISP_TEMPL_H*/
  45. #endif /*Disable/Enable content*/