Browse Source

Merge pull request #5233 from QiwenLi0729/master

去掉k210/driver/drv_mpylcd.c中lcd_init的static修饰
guo 3 years ago
parent
commit
00c39bb960
3 changed files with 6 additions and 2 deletions
  1. 4 0
      bsp/k210/driver/Kconfig
  2. 1 1
      bsp/k210/driver/drv_lcd.h
  3. 1 1
      bsp/k210/driver/drv_mpylcd.c

+ 4 - 0
bsp/k210/driver/Kconfig

@@ -1,3 +1,5 @@
+menu "Hardware Drivers Config"
+
 config BSP_USING_UART_HS
 config BSP_USING_UART_HS
     bool "Enable High Speed UART"
     bool "Enable High Speed UART"
     default y
     default y
@@ -193,3 +195,5 @@ if BSP_USING_CAMERA
         default 17
         default 17
 endif
 endif
 
 
+endmenu
+

+ 1 - 1
bsp/k210/driver/drv_lcd.h

@@ -58,7 +58,7 @@ void lcd_draw_rectangle(int x1, int y1, int x2, int y2);
 void lcd_draw_circle(int x1, int y1, int r);
 void lcd_draw_circle(int x1, int y1, int r);
 void lcd_set_color(int back, int fore);
 void lcd_set_color(int back, int fore);
 void lcd_show_image(int x, int y, int length, int wide, const unsigned char *buf);
 void lcd_show_image(int x, int y, int length, int wide, const unsigned char *buf);
-
+int lcd_init(void);
 void lcd_set_direction(lcd_dir_t dir);
 void lcd_set_direction(lcd_dir_t dir);
 
 
 #endif
 #endif

+ 1 - 1
bsp/k210/driver/drv_mpylcd.c

@@ -12,7 +12,7 @@ static struct rt_device_graphic_info info;
 static uint16_t fcolor = WHITE;
 static uint16_t fcolor = WHITE;
 static int bcolor = BLACK;
 static int bcolor = BLACK;
 
 
-static int lcd_init(void)
+int lcd_init(void)
 {
 {
     int result;
     int result;