From a20c3b17ceb3a81ac1e0f8356d9af366d80e0806 Mon Sep 17 00:00:00 2001 From: Titus von Boxberg Date: Wed, 19 Jul 2017 20:39:27 +0200 Subject: [PATCH] warning message when using DSI (for debugging) --- arch/arm/src/stm32f7/stm32_ltdc.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/arm/src/stm32f7/stm32_ltdc.c b/arch/arm/src/stm32f7/stm32_ltdc.c index 08326dff36..4b3121bb6b 100644 --- a/arch/arm/src/stm32f7/stm32_ltdc.c +++ b/arch/arm/src/stm32f7/stm32_ltdc.c @@ -662,9 +662,7 @@ static int stm32_fillarea(FAR struct ltdc_layer_s *layer, * Private Data ****************************************************************************/ -#if defined(CONFIG_STM32F7_LTDC_USE_DSI) - -#else +#if !defined(CONFIG_STM32F7_LTDC_USE_DSI) /* PIO pin configurations */ static const uint32_t g_ltdcpins[] = @@ -686,7 +684,7 @@ static const uint32_t g_ltdcpins[] = }; #define STM32_LTDC_NPINCONFIGS (sizeof(g_ltdcpins) / sizeof(uint32_t)) -#endif /* CONFIG_STM32F7_LTDC_USE_DSI */ +#endif /* !CONFIG_STM32F7_LTDC_USE_DSI */ /* This structure provides the base layer interface */ @@ -977,6 +975,8 @@ static void stm32_ltdc_periphconfig(void) uint32_t regval; #if defined(CONFIG_STM32F7_LTDC_USE_DSI) + /* work in progress; maybe move to lcdinfo when everything is OK. */ + lcdwarn("LTDC: Expecting preconfigured DSI; not configuring pins for LCD interface\n"); #else /* Configure GPIO's */ stm32_ltdc_gpioconfig();