/* LTDC MSP De-Initialization This function freeze the hardware resources used in this example.  */
void HAL_LTDC_MspDeInit(LTDC_HandleTypeDef *hltdc)
/* LTDC MSP De-Initialization This function freeze the hardware resources used in this example.  */
void HAL_LTDC_MspDeInit(LTDC_HandleTypeDef *hltdc)
{
  if(hltdc->Instance==LTDC)
  {
    __HAL_RCC_LTDC_CLK_DISABLE();
    HAL_GPIO_DeInit(ENABLE_GPIO_Port, ENABLE_Pin);
    HAL_GPIO_DeInit(GPIOA, B5_Pin|VSYNC_Pin|G2_Pin|R4_Pin
                          |R5_Pin);
    HAL_GPIO_DeInit(GPIOB, R3_Pin|R6_Pin|G4_Pin|G5_Pin
                          |B6_Pin|B7_Pin);
    HAL_GPIO_DeInit(GPIOG, R7_Pin|DOTCLK_Pin|G3_Pin|B3_Pin
                          |B4_Pin);
    HAL_GPIO_DeInit(GPIOC, HSYNC_Pin|G6_Pin|R2_Pin);
    HAL_GPIO_DeInit(GPIOD, G7_Pin|B2_Pin);
    HAL_NVIC_DisableIRQ(LTDC_IRQn);
  }
}