Ver código fonte

去掉bsp/k210 lcd_init函数的static修饰

liqiwen 3 anos atrás
pai
commit
b064376993
2 arquivos alterados com 2 adições e 2 exclusões
  1. 1 1
      bsp/k210/driver/drv_lcd.h
  2. 1 1
      bsp/k210/driver/drv_mpylcd.c

+ 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_set_color(int back, int fore);
 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);
 
 #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 int bcolor = BLACK;
 
-static int lcd_init(void)
+int lcd_init(void)
 {
     int result;