[imxrt1060] exchange On-chip Peripheral Drivers and Onboard Peripheral Drivers menu in Kconfig

This commit is contained in:
Meco Man 2022-05-04 02:39:06 -04:00 committed by guo
parent b077e91cdf
commit 907ee070dd
2 changed files with 60 additions and 60 deletions

View File

@ -26,8 +26,8 @@ static lv_disp_draw_buf_t disp_buf;
static lv_disp_drv_t disp_drv; /*Descriptor of a display driver*/
/* Macros for panel. */
#define LCD_WIDTH 480
#define LCD_HEIGHT 272
#define LCD_WIDTH LV_HOR_RES_MAX
#define LCD_HEIGHT LV_VER_RES_MAX
#define LCD_FB_BYTE_PER_PIXEL 2
#define LCD_HSW 41
#define LCD_HFP 4
@ -227,9 +227,9 @@ void lv_port_disp_init(void)
/*Used to copy the buffer's content to the display*/
disp_drv.flush_cb = lcd_fb_flush;
#if LV_USE_GPU_NXP_PXP
#if LV_USE_GPU_NXP_PXP
disp_drv.clean_dcache_cb = DEMO_CleanInvalidateCache;
#endif
#endif
/*Set a display buffer*/
disp_drv.draw_buf = &disp_buf;

View File

@ -17,6 +17,61 @@ config SOC_MIMXRT1062DVL6A
select RT_USING_USER_MAIN
default y
menu "Onboard Peripheral Drivers"
config BSP_USING_SDRAM
bool "Enable SDRAM"
default n
menuconfig BSP_USING_LCD
bool "Enable LCD"
default n
if BSP_USING_LCD
config LCD_WIDTH
int "width"
default 480
config LCD_HEIGHT
int "height"
default 272
config LCD_HFP
int "HFP"
default 4
config LCD_VFP
int "VFP"
default 4
config LCD_HBP
int "HBP"
default 8
config LCD_VBP
int "VBP"
default 2
config LCD_HSW
int "HSW"
default 40
config LCD_VSW
int "VSW"
default 10
config LCD_BL_PIN
int "Backlight ctrl pin"
default 63
config LCD_RST_PIN
int "Reset pin"
default 2
endif
config BSP_USING_LVGL
bool "Enable LVGL for LCD"
select BSP_USING_PXP
select BSP_USING_CACHE
select BSP_USING_LCD
select PKG_USING_LVGL
select PKG_USING_LV_MUSIC_DEMO
default n
endmenu
menu "On-chip Peripheral Drivers"
config BSP_USING_GPIO
@ -62,62 +117,7 @@ menu "On-chip Peripheral Drivers"
config BSP_USING_CACHE
bool "Enable CACHE"
default n
menuconfig BSP_USING_LCD
bool "Enable LCD"
default n
if BSP_USING_LCD
config LCD_WIDTH
int "width"
default 480
config LCD_HEIGHT
int "height"
default 272
config LCD_HFP
int "HFP"
default 4
config LCD_VFP
int "VFP"
default 4
config LCD_HBP
int "HBP"
default 8
config LCD_VBP
int "VBP"
default 2
config LCD_HSW
int "HSW"
default 40
config LCD_VSW
int "VSW"
default 10
config LCD_BL_PIN
int "Backlight ctrl pin"
default 63
config LCD_RST_PIN
int "Reset pin"
default 2
endif
endmenu
menu "Onboard Peripheral Drivers"
config BSP_USING_SDRAM
bool "Enable SDRAM"
default n
config BSP_USING_LVGL
bool "Enable LVGL for LCD"
select BSP_USING_LCD
select PKG_USING_LVGL
select PKG_USING_LV_MUSIC_DEMO
select BSP_USING_PXP
select BSP_USING_CACHE
default n
endmenu
menu "Board extended module Drivers"