Bläddra i källkod

fix: lcd的qspi代码在air8101下编译失败

Wendal Chen 1 år sedan
förälder
incheckning
48ef827fbe
2 ändrade filer med 14 tillägg och 0 borttagningar
  1. 12 0
      components/lcd/luat_lcd.c
  2. 2 0
      components/lcd/luat_lcd_jd9261t.c

+ 12 - 0
components/lcd/luat_lcd.c

@@ -536,3 +536,15 @@ int luat_lcd_draw_circle(luat_lcd_conf_t* conf,int16_t x0, int16_t y0, uint8_t r
     return 0;
 }
 
+#ifndef LUAT_COMPILER_NOWEAK
+
+LUAT_WEAK int luat_lcd_qspi_config(luat_lcd_conf_t* conf, luat_lcd_qspi_conf_t *qspi_config) {
+    return -1;
+};
+
+LUAT_WEAK int luat_lcd_qspi_auto_flush_on_off(luat_lcd_conf_t* conf, uint8_t on_off) {
+    return -1;
+}
+
+#endif
+

+ 2 - 0
components/lcd/luat_lcd_jd9261t.c

@@ -2,6 +2,8 @@
 #include "luat_lcd.h"
 #include "luat_gpio.h"
 #include "luat_mem.h"
+#include "luat_rtos.h"
+
 #define LUAT_LOG_TAG "jd9261t"
 #include "luat_log.h"