diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2014-12-29 09:50:36 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2014-12-29 09:50:36 -0600 |
commit | 7c98e5cc9443f6d97d5c9d99e40723ce6b2e5cd7 (patch) | |
tree | cb98a28a45a58262549e52e23c407f3255e648be /nuttx | |
parent | f2c575d4fdf44b7763d07e34a8b5e32df2225ccc (diff) | |
download | nuttx-7c98e5cc9443f6d97d5c9d99e40723ce6b2e5cd7.tar.gz nuttx-7c98e5cc9443f6d97d5c9d99e40723ce6b2e5cd7.tar.bz2 nuttx-7c98e5cc9443f6d97d5c9d99e40723ce6b2e5cd7.zip |
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 <ocram.lhark@gmail.com>
Diffstat (limited to 'nuttx')
-rw-r--r-- | nuttx/configs/stm32f429i-disco/ltdc/defconfig | 2 | ||||
-rw-r--r-- | nuttx/configs/stm32f429i-disco/src/stm32_boot.c | 8 |
2 files changed, 5 insertions, 5 deletions
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. |