mirror of
https://github.com/apache/nuttx.git
synced 2026-10-10 07:40:27 +00:00
boards/szpi-esp32s3: Register LCD device
Register LCD device "/dev/lcd0" for graphics. Signed-off-by: wangjianyu3 <wangjianyu3@xiaomi.com>
This commit is contained in:
parent
fb24cae852
commit
bd87bec6fb
1 changed files with 9 additions and 0 deletions
|
|
@ -38,6 +38,7 @@
|
|||
#include <errno.h>
|
||||
#include <nuttx/fs/fs.h>
|
||||
#include <nuttx/himem/himem.h>
|
||||
#include <nuttx/lcd/lcd_dev.h>
|
||||
#include <arch/board/board.h>
|
||||
|
||||
#ifdef CONFIG_ESP32S3_TIMER
|
||||
|
|
@ -442,6 +443,14 @@ int esp32s3_bringup(void)
|
|||
}
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_LCD_DEV
|
||||
ret = lcddev_register(0);
|
||||
if (ret < 0)
|
||||
{
|
||||
syslog(LOG_ERR, "ERROR: lcddev_register() failed: %d\n", ret);
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_ESP32S3_SDMMC
|
||||
ret = board_sdmmc_initialize();
|
||||
if (ret < 0)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue