Application/Config/LCDConf_WHT.c
/**
  * @brief LTDC MSP Initialization 
  *        This function configures the hardware resources used in this example: 
  *           - Peripheral's clock enable
  *           - Peripheral's GPIO Configuration  
  * @param hltdc: LTDC handle pointer
  * @retval None
  */
@brief LTDC MSP Initialization
This function configures the hardware resources used in this example:
- Peripheral's clock enable
- Peripheral's GPIO Configuration
@param hltdc: LTDC handle pointer
@retval None
@brief LTDC MSP Initialization This function configures the hardware resources used in this example : - Peripheral ' s clock enable - Peripheral ' s GPIO Configuration @param hltdc : LTDC handle pointer @retval None
void HAL_LTDC_MspInit(LTDC_HandleTypeDef *hltdc)
{  
  GPIO_InitTypeDef GPIO_Init_Structure;
  __HAL_RCC_LTDC_CLK_ENABLE();
  __HAL_RCC_GPIOF_CLK_ENABLE();
  __HAL_RCC_GPIOG_CLK_ENABLE();
  __HAL_RCC_GPIOH_CLK_ENABLE();
  __HAL_RCC_GPIOI_CLK_ENABLE();
  GPIO_Init_Structure.Pin = GPIO_PIN_10;
  GPIO_Init_Structure.Mode = GPIO_MODE_AF_PP;
  GPIO_Init_Structure.Pull = GPIO_NOPULL;
  GPIO_Init_Structure.Speed = GPIO_SPEED_FAST;
  GPIO_Init_Structure.Alternate= GPIO_AF14_LTDC;
  HAL_GPIO_Init(GPIOF, &GPIO_Init_Structure);
  GPIO_Init_Structure.Pin = GPIO_PIN_6 | GPIO_PIN_7 | GPIO_PIN_10 | GPIO_PIN_11;
  HAL_GPIO_Init(GPIOG, &GPIO_Init_Structure);
  GPIO_Init_Structure.Pin = GPIO_PIN_8 | GPIO_PIN_9 | GPIO_PIN_10 | GPIO_PIN_11 |
														GPIO_PIN_12 | GPIO_PIN_13 | GPIO_PIN_14 | GPIO_PIN_15;
  HAL_GPIO_Init(GPIOH, &GPIO_Init_Structure);
  GPIO_Init_Structure.Pin = GPIO_PIN_0 | GPIO_PIN_1 | GPIO_PIN_2 | GPIO_PIN_4 |
														GPIO_PIN_5 | GPIO_PIN_6 | GPIO_PIN_7 | GPIO_PIN_9 |
														GPIO_PIN_10;
  HAL_GPIO_Init(GPIOI, &GPIO_Init_Structure);
  HAL_NVIC_SetPriority(LTDC_IRQn, 0xE, 0);
  HAL_NVIC_EnableIRQ(LTDC_IRQn);
}
void HAL_LTDC_MspInit ( LTDC_HandleTypeDef * hltdc ) { GPIO_InitTypeDef GPIO_Init_Structure ; __HAL_RCC_LTDC_CLK_ENABLE ( ) ; __HAL_RCC_GPIOF_CLK_ENABLE ( ) ; __HAL_RCC_GPIOG_CLK_ENABLE ( ) ; __HAL_RCC_GPIOH_CLK_ENABLE ( ) ; __HAL_RCC_GPIOI_CLK_ENABLE ( ) ; GPIO_Init_Structure . Pin = GPIO_PIN_10 ; GPIO_Init_Structure . Mode = GPIO_MODE_AF_PP ; GPIO_Init_Structure . Pull = GPIO_NOPULL ; GPIO_Init_Structure . Speed = GPIO_SPEED_FAST ; GPIO_Init_Structure . Alternate = GPIO_AF14_LTDC ; HAL_GPIO_Init ( GPIOF , & GPIO_Init_Structure ) ; GPIO_Init_Structure . Pin = GPIO_PIN_6 | GPIO_PIN_7 | GPIO_PIN_10 | GPIO_PIN_11 ; HAL_GPIO_Init ( GPIOG , & GPIO_Init_Structure ) ; GPIO_Init_Structure . Pin = GPIO_PIN_8 | GPIO_PIN_9 | GPIO_PIN_10 | GPIO_PIN_11 | GPIO_PIN_12 | GPIO_PIN_13 | GPIO_PIN_14 | GPIO_PIN_15 ; HAL_GPIO_Init ( GPIOH , & GPIO_Init_Structure ) ; GPIO_Init_Structure . Pin = GPIO_PIN_0 | GPIO_PIN_1 | GPIO_PIN_2 | GPIO_PIN_4 | GPIO_PIN_5 | GPIO_PIN_6 | GPIO_PIN_7 | GPIO_PIN_9 | GPIO_PIN_10 ; HAL_GPIO_Init ( GPIOI , & GPIO_Init_Structure ) ; HAL_NVIC_SetPriority ( LTDC_IRQn , 0xE , 0 ) ; HAL_NVIC_EnableIRQ ( LTDC_IRQn ) ; }
@brief LTDC MSP Initialization
        This function configures the hardware resources used in this example:
           - Peripheral's clock enable
           - Peripheral's GPIO Configuration
 @param hltdc: LTDC handle pointer
 @retval None
@brief LTDC MSP Initialization This function configures the hardware resources used in this example : - Peripheral ' s clock enable - Peripheral ' s GPIO Configuration @param hltdc : LTDC handle pointer @retval None
/* Enable peripherals and GPIO Clocks */ /* Enable the LTDC Clock */ /* Enable GPIO Clock */ /* Configure peripheral GPIO */ /* GPIOs Configuration */ /*
   +------------------------+-----------------------+----------------------------+
   +                       LCD pins assignment                                   +
   +------------------------+-----------------------+----------------------------+
   |  LCD_TFT R2 <-> PH.08  |  LCD_TFT G2 <-> PH.13 |  LCD_TFT B2 <-> PG.10      |
   |  LCD_TFT R3 <-> PH.09  |  LCD_TFT G3 <-> PH.14 |  LCD_TFT B3 <-> PG.11      |
   |  LCD_TFT R4 <-> PH.10  |  LCD_TFT G4 <-> PH.15 |  LCD_TFT B4 <-> PI.04      |
   |  LCD_TFT R5 <-> PH.11  |  LCD_TFT G5 <-> PI.00 |  LCD_TFT B5 <-> PI.05      |
   |  LCD_TFT R6 <-> PH.12  |  LCD_TFT G6 <-> PI.01 |  LCD_TFT B6 <-> PI.06      |
   |  LCD_TFT R7 <-> PG.06  |  LCD_TFT G7 <-> PI.02 |  LCD_TFT B7 <-> PI.07      |
   -------------------------------------------------------------------------------
            |  LCD_TFT HSYNC <-> PI.10  | LCDTFT VSYNC <->  PI.09 |
            |  LCD_TFT PCLK  <-> PG.07  | LCD_TFT DE   <->  PF.10 |
             -----------------------------------------------------
  */ /* GPIOF configuration */ /* GPIOG configuration */ /* GPIOH configuration */ /* GPIOI configuration */ /* Set LTDC Interrupt to the lowest priority */ /* Enable LTDC Interrupt */