mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-11-09 20:45:41 +08:00
分离MIPI-LTDC和LCD配置
Signed-off-by: Willian Chan <chentingwei@rt-thread.com>
This commit is contained in:
1 parent
e8a10c4df0
commit
90e2954724
6 files changed
+297
-289
No files matched your search
@@ -49,6 +49,9 @@ if GetDepend('BSP_USING_SDRAM'):
|
||||
if GetDepend('BSP_USING_LCD'):
|
||||
src += ['drv_lcd.c']
|
||||
|
||||
if GetDepend('BSP_USING_LCD_MIPI'):
|
||||
src += ['drv_lcd_mipi.c']
|
||||
|
||||
if GetDepend('BSP_USING_ONCHIP_RTC'):
|
||||
src += ['drv_rtc.c']
|
||||
|
||||
|
||||
File diff suppressed because it is too large.
Load diff
@@ -10,11 +10,16 @@ menu "Onboard Peripheral Drivers"
|
||||
bool "Enable SDRAM"
|
||||
select BSP_USING_FMC
|
||||
default n
|
||||
|
||||
config BSP_USING_LCD_MIPI
|
||||
bool
|
||||
default n
|
||||
|
||||
config BSP_USING_LCD_OTM8009A
|
||||
bool "Enable LCD OTM8009A"
|
||||
select BSP_USING_SDRAM
|
||||
select BSP_USING_LTDC
|
||||
select BSP_USING_LCD_MIPI
|
||||
default n
|
||||
|
||||
config BSP_USING_QSPI_FLASH
|
||||
|
||||
@@ -13,22 +13,22 @@ CubeMX_Config/Src/stm32f4xx_hal_msp.c
|
||||
''')
|
||||
|
||||
if GetDepend(['BSP_USING_QSPI_FLASH']):
|
||||
src += Glob('ports/drv_qspi_flash.c')
|
||||
src += ['ports/drv_qspi_flash.c']
|
||||
|
||||
if GetDepend(['PKG_USING_FAL']):
|
||||
src += Glob('ports/qspi_mnt.c')
|
||||
src += ['ports/qspi_mnt.c']
|
||||
|
||||
if GetDepend(['BSP_USING_LCD_OTM8009A']):
|
||||
src += Glob('ports/drv_lcd_otm8009a.c')
|
||||
src += ['ports/drv_otm8009a.c']
|
||||
|
||||
if GetDepend(['BSP_USING_TOUCH']):
|
||||
src += Glob('ports/touch/*.c')
|
||||
|
||||
if GetDepend(['BSP_USING_SDCARD']):
|
||||
src += Glob('ports/drv_sdcard.c')
|
||||
src += ['ports/drv_sdcard.c']
|
||||
|
||||
if GetDepend(['BSP_USING_QSPI']):
|
||||
src += Glob('ports/drv_qspi_flash.c')
|
||||
src += ['ports/drv_qspi_flash.c']
|
||||
|
||||
path = [cwd]
|
||||
path += [cwd + '/CubeMX_Config/Inc']
|
||||
|
||||
+18
-280
File diff suppressed because it is too large.
Load diff
@@ -15,9 +15,14 @@
|
||||
#include <rtdevice.h>
|
||||
#include <board.h>
|
||||
|
||||
rt_err_t otm8009a_init(void);
|
||||
void otm8009a_layer_init(uint16_t index, uint32_t framebuffer);
|
||||
void lcd_clear(uint32_t color);
|
||||
void lcd_fill_rect(uint16_t x_pos, uint16_t y_pos, uint16_t width, uint16_t height);
|
||||
#define LCD_WIDTH (800U)
|
||||
#define LCD_HEIGHT (480U)
|
||||
|
||||
#define LCD_HSYNC (1U)
|
||||
#define LCD_HBP (15U)
|
||||
#define LCD_HFP (16U)
|
||||
#define LCD_VSYNC (2U)
|
||||
#define LCD_VBP (34U)
|
||||
#define LCD_VFP (34U)
|
||||
|
||||
#endif
|
||||
Reference in new issue
Block a user