From 316cbd33face161ee810c126b9c23a2f053e6f7f Mon Sep 17 00:00:00 2001 From: liqiwen Date: Wed, 27 Oct 2021 10:52:29 +0800 Subject: [PATCH 1/2] adjust bsp/k210/driver/Kconfig --- bsp/k210/driver/Kconfig | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bsp/k210/driver/Kconfig b/bsp/k210/driver/Kconfig index 3dd1742505..37f20b0b76 100644 --- a/bsp/k210/driver/Kconfig +++ b/bsp/k210/driver/Kconfig @@ -1,3 +1,5 @@ +menu "Hardware Drivers Config" + config BSP_USING_UART_HS bool "Enable High Speed UART" default y @@ -193,3 +195,5 @@ if BSP_USING_CAMERA default 17 endif +endmenu + From b0643769937d97e77d2eabf9f80e5a0e3e30d080 Mon Sep 17 00:00:00 2001 From: liqiwen Date: Wed, 27 Oct 2021 14:09:17 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E5=8E=BB=E6=8E=89bsp/k210=20lcd=5Finit?= =?UTF-8?q?=E5=87=BD=E6=95=B0=E7=9A=84static=E4=BF=AE=E9=A5=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bsp/k210/driver/drv_lcd.h | 2 +- bsp/k210/driver/drv_mpylcd.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bsp/k210/driver/drv_lcd.h b/bsp/k210/driver/drv_lcd.h index 0c2fbc93af..76a58df3a1 100644 --- a/bsp/k210/driver/drv_lcd.h +++ b/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 diff --git a/bsp/k210/driver/drv_mpylcd.c b/bsp/k210/driver/drv_mpylcd.c index 0b7ab8b323..f7665e1c9e 100644 --- a/bsp/k210/driver/drv_mpylcd.c +++ b/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;