mirror of
https://github.com/apache/nuttx.git
synced 2026-08-16 18:03:19 +00:00
boards/esp32-wrover-kit: Add support for LCD character driver
This commit is contained in:
parent
856bed2966
commit
ee636c5fe2
1 changed files with 21 additions and 0 deletions
|
|
@ -43,6 +43,8 @@
|
|||
#include "esp32_spiflash.h"
|
||||
#include "esp32_partition.h"
|
||||
|
||||
#include <arch/board/board.h>
|
||||
|
||||
#ifdef CONFIG_USERLED
|
||||
# include <nuttx/leds/userled.h>
|
||||
#endif
|
||||
|
|
@ -75,6 +77,11 @@
|
|||
# include <nuttx/input/buttons.h>
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_LCD_DEV
|
||||
# include <nuttx/board.h>
|
||||
# include <nuttx/lcd/lcd_dev.h>
|
||||
#endif
|
||||
|
||||
#include "esp32-wrover-kit.h"
|
||||
|
||||
/****************************************************************************
|
||||
|
|
@ -313,6 +320,20 @@ int esp32_bringup(void)
|
|||
}
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_LCD_DEV
|
||||
ret = board_lcd_initialize();
|
||||
if (ret < 0)
|
||||
{
|
||||
syslog(LOG_ERR, "ERROR: board_lcd_initialize() failed: %d\n", ret);
|
||||
}
|
||||
|
||||
ret = lcddev_register(0);
|
||||
if (ret < 0)
|
||||
{
|
||||
syslog(LOG_ERR, "ERROR: lcddev_register() failed: %d\n", ret);
|
||||
}
|
||||
#endif
|
||||
|
||||
/* If we got here then perhaps not all initialization was successful, but
|
||||
* at least enough succeeded to bring-up NSH with perhaps reduced
|
||||
* capabilities.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue