diff options
Diffstat (limited to 'nuttx/configs/open1788/src/lpc17_boardinitialize.c')
-rw-r--r-- | nuttx/configs/open1788/src/lpc17_boardinitialize.c | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/nuttx/configs/open1788/src/lpc17_boardinitialize.c b/nuttx/configs/open1788/src/lpc17_boardinitialize.c index f8916f0da..896c38cf6 100644 --- a/nuttx/configs/open1788/src/lpc17_boardinitialize.c +++ b/nuttx/configs/open1788/src/lpc17_boardinitialize.c @@ -48,7 +48,6 @@ #include "up_internal.h" #include "lpc17_emc.h" -#include "lpc17_gpio.h" #include "open1788.h" @@ -108,12 +107,10 @@ void lpc17_boardinitialize(void) up_ledinit(); #endif - /* Enable the LCD backlight (unless we can defer this to a later - * initialization phase. - */ + /* Configure the LCD GPIOs if LCD support has been selected. */ -#if defined(CONFIG_LPC17_LCD) && !defined(CONFIG_BOARD_INITIALIZE) - lpc17_configgpio(GPIO_LCD_BL); +#ifdef CONFIG_LPC17_LCD + lpc17_lcdinitialize(); #endif } @@ -133,12 +130,6 @@ void lpc17_boardinitialize(void) #ifdef CONFIG_BOARD_INITIALIZE void board_initialize(void) { - /* Enable the LCD backlight */ - -#ifdef CONFIG_LPC17_LCD - lpc17_configgpio(GPIO_LCD_BL); -#endif - /* Perform NSH initialization here instead of from the NSH. This * alternative NSH initialization is necessary when NSH is ran in user-space * but the initialization function must run in kernel space. |