Skip to content

Commit 3532ad3

Browse files
committed
add hdmi menuconfig
1 parent c97f33d commit 3532ad3

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

bsp/raspberry-pi/raspi4-32/.config

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -530,4 +530,5 @@ CONFIG_BSP_USING_WDT=y
530530
#
531531
# Board Peripheral Drivers
532532
#
533-
# CONFIG_BSP_USING_HDMI is not set
533+
CONFIG_BSP_USING_HDMI=y
534+
CONFIG_BSP_USING_HDMI_DISPLAY=y

bsp/raspberry-pi/raspi4-32/driver/drv_hdmi.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
#include "mbox.h"
1414
#include "drv_hdmi.h"
1515

16+
#ifdef BSP_USING_HDMI
1617
#define LCD_WIDTH (800)
1718
#define LCD_HEIGHT (480)
1819
#define LCD_DEPTH (32)
@@ -305,3 +306,4 @@ int hdmi_fb_init(void)
305306
}
306307

307308
INIT_DEVICE_EXPORT(hdmi_fb_init);
309+
#endif /*BSP_USING_HDMI */

bsp/raspberry-pi/raspi4-32/rtconfig.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,5 +183,7 @@
183183

184184
/* Board Peripheral Drivers */
185185

186+
#define BSP_USING_HDMI
187+
#define BSP_USING_HDMI_DISPLAY
186188

187189
#endif

0 commit comments

Comments
 (0)