From 7c98e5cc9443f6d97d5c9d99e40723ce6b2e5cd7 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Mon, 29 Dec 2014 09:50:36 -0600 Subject: stm32f429i-disco: change ltdc initializing during boot up. This moves initializing of the ili9341 lcd and ltdc driver to the board specific initializing routine. Signed-off-by: Marco Krahl --- nuttx/configs/stm32f429i-disco/ltdc/defconfig | 2 +- nuttx/configs/stm32f429i-disco/src/stm32_boot.c | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'nuttx') diff --git a/nuttx/configs/stm32f429i-disco/ltdc/defconfig b/nuttx/configs/stm32f429i-disco/ltdc/defconfig index bd117f55e..1014b1d9d 100644 --- a/nuttx/configs/stm32f429i-disco/ltdc/defconfig +++ b/nuttx/configs/stm32f429i-disco/ltdc/defconfig @@ -547,7 +547,7 @@ CONFIG_NAME_MAX=32 # # RTOS hooks # -# CONFIG_BOARD_INITIALIZE is not set +CONFIG_BOARD_INITIALIZE=y # CONFIG_SCHED_STARTHOOK is not set # CONFIG_SCHED_ATEXIT is not set # CONFIG_SCHED_ONEXIT is not set diff --git a/nuttx/configs/stm32f429i-disco/src/stm32_boot.c b/nuttx/configs/stm32f429i-disco/src/stm32_boot.c index 2640c1d4b..fb17f1ca7 100644 --- a/nuttx/configs/stm32f429i-disco/src/stm32_boot.c +++ b/nuttx/configs/stm32f429i-disco/src/stm32_boot.c @@ -104,10 +104,6 @@ void stm32_boardinitialize(void) #ifdef CONFIG_STM32_FSMC stm32_enablefsmc(); #endif - -#ifdef CONFIG_STM32_LTDC - up_fbinitialize(); -#endif } /**************************************************************************** @@ -126,6 +122,10 @@ void stm32_boardinitialize(void) #ifdef CONFIG_BOARD_INITIALIZE void board_initialize(void) { +#ifdef CONFIG_STM32_LTDC + up_fbinitialize(); +#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. -- cgit v1.2.3