From 5707e84a82c3c155602100368013352d33fe77a5 Mon Sep 17 00:00:00 2001 From: Willian Chan Date: Fri, 24 May 2019 19:23:25 +0800 Subject: [PATCH] Fix comment random code Signed-off-by: Willian Chan --- bsp/stm32/libraries/HAL_Drivers/drv_lcd_mipi.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/bsp/stm32/libraries/HAL_Drivers/drv_lcd_mipi.c b/bsp/stm32/libraries/HAL_Drivers/drv_lcd_mipi.c index 9a76ee7507..3928353153 100644 --- a/bsp/stm32/libraries/HAL_Drivers/drv_lcd_mipi.c +++ b/bsp/stm32/libraries/HAL_Drivers/drv_lcd_mipi.c @@ -39,8 +39,7 @@ rt_err_t ltdc_init(void) uint32_t VSA = LCD_VSYNC, VFP = LCD_VFP, VBP = LCD_VBP, VACT = LCD_HEIGHT; stm32_mipi_lcd_init(); - - /* ��ʼ��STM32��ʾ��ʱ�� */ + __HAL_RCC_LTDC_CLK_ENABLE(); __HAL_RCC_LTDC_FORCE_RESET(); __HAL_RCC_LTDC_RELEASE_RESET(); @@ -57,14 +56,12 @@ rt_err_t ltdc_init(void) PeriphClkInitStruct.PLLSAIDivR = RCC_PLLSAIDIVR_2; HAL_RCCEx_PeriphCLKConfig(&PeriphClkInitStruct); - /* ����NVIC */ HAL_NVIC_SetPriority(LTDC_IRQn, 3, 0); HAL_NVIC_SetPriority(DSI_IRQn, 3, 0); HAL_NVIC_EnableIRQ(LTDC_IRQn); HAL_NVIC_EnableIRQ(DSI_IRQn); - /* ����DSI */ DSI_PLLInitTypeDef dsi_pll; hdsi.Instance = DSI;