diff options
| -rw-r--r-- | bsp/imxrt/imxrt1060-nxp-evk/applications/lvgl/lv_port_disp.c | 8 | ||||
| -rw-r--r-- | bsp/imxrt/imxrt1060-nxp-evk/board/Kconfig | 108 |
2 files changed, 58 insertions, 58 deletions
diff --git a/bsp/imxrt/imxrt1060-nxp-evk/applications/lvgl/lv_port_disp.c b/bsp/imxrt/imxrt1060-nxp-evk/applications/lvgl/lv_port_disp.c index da3f86e763..6637265667 100644 --- a/bsp/imxrt/imxrt1060-nxp-evk/applications/lvgl/lv_port_disp.c +++ b/bsp/imxrt/imxrt1060-nxp-evk/applications/lvgl/lv_port_disp.c @@ -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; diff --git a/bsp/imxrt/imxrt1060-nxp-evk/board/Kconfig b/bsp/imxrt/imxrt1060-nxp-evk/board/Kconfig index c3ca2808bc..830193ba98 100644 --- a/bsp/imxrt/imxrt1060-nxp-evk/board/Kconfig +++ b/bsp/imxrt/imxrt1060-nxp-evk/board/Kconfig @@ -17,50 +17,10 @@ config SOC_MIMXRT1062DVL6A select RT_USING_USER_MAIN default y -menu "On-chip Peripheral Drivers" - - config BSP_USING_GPIO - bool "Enable GPIO" - select RT_USING_PIN - default y - - menuconfig BSP_USING_LPUART - bool "Enable UART" - select RT_USING_SERIAL - default y - if BSP_USING_LPUART - config BSP_USING_LPUART1 - bool "Enable LPUART1" - default y - config BSP_USING_LPUART2 - bool "Enable LPUART2" - default n - config BSP_USING_LPUART3 - bool "Enable LPUART3" - default n - config BSP_USING_LPUART4 - bool "Enable LPUART4" - default n - config BSP_USING_LPUART5 - bool "Enable LPUART5" - default n - config BSP_USING_LPUART6 - bool "Enable LPUART6" - default n - config BSP_USING_LPUART7 - bool "Enable LPUART7" - default n - config BSP_USING_LPUART8 - bool "Enable LPUART8" - default n - endif - - config BSP_USING_PXP - bool "Enable PXP" - default n - - config BSP_USING_CACHE - bool "Enable CACHE" +menu "Onboard Peripheral Drivers" + + config BSP_USING_SDRAM + bool "Enable SDRAM" default n menuconfig BSP_USING_LCD @@ -100,26 +60,66 @@ menu "On-chip Peripheral Drivers" 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_PXP + select BSP_USING_CACHE 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 "On-chip Peripheral Drivers" + + config BSP_USING_GPIO + bool "Enable GPIO" + select RT_USING_PIN + default y + + menuconfig BSP_USING_LPUART + bool "Enable UART" + select RT_USING_SERIAL + default y + if BSP_USING_LPUART + config BSP_USING_LPUART1 + bool "Enable LPUART1" + default y + config BSP_USING_LPUART2 + bool "Enable LPUART2" + default n + config BSP_USING_LPUART3 + bool "Enable LPUART3" + default n + config BSP_USING_LPUART4 + bool "Enable LPUART4" + default n + config BSP_USING_LPUART5 + bool "Enable LPUART5" + default n + config BSP_USING_LPUART6 + bool "Enable LPUART6" + default n + config BSP_USING_LPUART7 + bool "Enable LPUART7" + default n + config BSP_USING_LPUART8 + bool "Enable LPUART8" + default n + endif + + config BSP_USING_PXP + bool "Enable PXP" + default n + + config BSP_USING_CACHE + bool "Enable CACHE" + default n + +endmenu + menu "Board extended module Drivers" endmenu |
