Clock LTDC at 10MHz

This seems to cause less horizontal (appears as vertical) banding
This commit is contained in:
2023-03-17 18:22:49 +01:00
parent 7e4bc54266
commit 148ab2b69c
3 changed files with 14 additions and 17 deletions

View File

@ -312,11 +312,11 @@ void HAL_LTDC_MspInit(LTDC_HandleTypeDef* hltdc)
/** Initializes the peripherals clock
*/
PeriphClkInitStruct.PeriphClockSelection = RCC_PERIPHCLK_LTDC;
PeriphClkInitStruct.PLL3.PLL3M = 3;
PeriphClkInitStruct.PLL3.PLL3N = 16;
PeriphClkInitStruct.PLL3.PLL3M = 2;
PeriphClkInitStruct.PLL3.PLL3N = 15;
PeriphClkInitStruct.PLL3.PLL3P = 2;
PeriphClkInitStruct.PLL3.PLL3Q = 2;
PeriphClkInitStruct.PLL3.PLL3R = 14;
PeriphClkInitStruct.PLL3.PLL3R = 18;
PeriphClkInitStruct.PLL3.PLL3RGE = RCC_PLL3VCIRANGE_3;
PeriphClkInitStruct.PLL3.PLL3VCOSEL = RCC_PLL3VCOWIDE;
PeriphClkInitStruct.PLL3.PLL3FRACN = 0;