Fix PCLK polarity
This commit is contained in:
parent
9dab2067cc
commit
641fa3b236
|
@ -372,7 +372,7 @@ static void MX_LTDC_Init(void) {
|
|||
hltdc.Init.HSPolarity = LTDC_HSPOLARITY_AL;
|
||||
hltdc.Init.VSPolarity = LTDC_VSPOLARITY_AL;
|
||||
hltdc.Init.DEPolarity = LTDC_DEPOLARITY_AL;
|
||||
hltdc.Init.PCPolarity = LTDC_PCPOLARITY_IPC;
|
||||
hltdc.Init.PCPolarity = LTDC_PCPOLARITY_IIPC;
|
||||
hltdc.Init.HorizontalSync = 4;
|
||||
hltdc.Init.VerticalSync = 1;
|
||||
hltdc.Init.AccumulatedHBP = 9;
|
||||
|
|
2
Makefile
2
Makefile
|
@ -1,5 +1,5 @@
|
|||
##########################################################################################################################
|
||||
# File automatically-generated by tool: [projectgenerator] version: [3.18.0-B7] date: [Wed Mar 08 20:23:05 CET 2023]
|
||||
# File automatically-generated by tool: [projectgenerator] version: [3.18.0-B7] date: [Wed Mar 08 21:28:20 CET 2023]
|
||||
##########################################################################################################################
|
||||
|
||||
# ------------------------------------------------
|
||||
|
|
|
@ -28,11 +28,14 @@ LTDC.DEPolarity=LTDC_DEPOLARITY_AL
|
|||
LTDC.HBP=5
|
||||
LTDC.HFP=5
|
||||
LTDC.HSync=5
|
||||
LTDC.IPParameters=HSync,HBP,HFP,ActiveW,VSync,DEPolarity,Layers,WindowX1_L0,WindowY1_L0,PixelFormat_L0,Alpha_L0,ImageWidth_L0,ImageHeight_L0
|
||||
LTDC.IPParameters=HSync,HBP,HFP,ActiveW,VSync,DEPolarity,Layers,WindowX1_L0,WindowY1_L0,PixelFormat_L0,Alpha_L0,ImageWidth_L0,ImageHeight_L0,VBP,VFP,PCPolarity
|
||||
LTDC.ImageHeight_L0=480
|
||||
LTDC.ImageWidth_L0=320
|
||||
LTDC.Layers=0
|
||||
LTDC.PCPolarity=LTDC_PCPOLARITY_IIPC
|
||||
LTDC.PixelFormat_L0=LTDC_PIXEL_FORMAT_RGB565
|
||||
LTDC.VBP=2
|
||||
LTDC.VFP=2
|
||||
LTDC.VSync=2
|
||||
LTDC.WindowX1_L0=320
|
||||
LTDC.WindowY1_L0=480
|
||||
|
|
Loading…
Reference in New Issue