Closer to generated code
This commit is contained in:
parent
50cfe87592
commit
1f75666d9d
File diff suppressed because it is too large
Load Diff
|
@ -21,10 +21,12 @@
|
|||
|
||||
/* Private includes ----------------------------------------------------------*/
|
||||
/* USER CODE BEGIN Includes */
|
||||
#include "ft_logo_grad.h"
|
||||
#include "ft_logo_orange.h"
|
||||
#include "stm32h7xx_hal.h"
|
||||
#include "stm32h7xx_hal_ltdc.h"
|
||||
#include <stdint.h>
|
||||
|
||||
/* USER CODE END Includes */
|
||||
|
||||
/* Private typedef -----------------------------------------------------------*/
|
||||
|
@ -106,8 +108,8 @@ void DISP_Init() {
|
|||
// Data read on rising edge of DCLK
|
||||
// HSYNC & VSYNC Activ low
|
||||
// DE Active high
|
||||
// Horizontal front porch 5
|
||||
// Vertical front porch 2
|
||||
// Horizontal back porch 5
|
||||
// Vertical back porch 2
|
||||
uint8_t data2[] = {0x53, 0x00, 0x05, 0x02};
|
||||
DISP_WriteReg(0xB3, data2, sizeof(data2));
|
||||
// SET cyc
|
||||
|
@ -183,6 +185,7 @@ int main(void) {
|
|||
|
||||
/* Initialize all configured peripherals */
|
||||
MX_GPIO_Init();
|
||||
MX_LTDC_Init();
|
||||
MX_USART3_UART_Init();
|
||||
MX_USB_OTG_HS_USB_Init();
|
||||
/* USER CODE BEGIN 2 */
|
||||
|
@ -194,7 +197,6 @@ int main(void) {
|
|||
HAL_Delay(150);
|
||||
DISP_Init();
|
||||
HAL_Delay(500);
|
||||
MX_LTDC_Init();
|
||||
// if (HAL_LTDC_Reload(&hltdc, LTDC_RELOAD_IMMEDIATE) != HAL_OK) {
|
||||
// Error_Handler();
|
||||
// }
|
||||
|
|
|
@ -6,17 +6,19 @@ GPIO.groupedBy=Group By Peripherals
|
|||
KeepUserPlacement=true
|
||||
LTDC.ActiveW=320
|
||||
LTDC.Alpha_L0=255
|
||||
LTDC.DEPolarity=LTDC_DEPOLARITY_AH
|
||||
LTDC.DEPolarity=LTDC_DEPOLARITY_AL
|
||||
LTDC.Green=255
|
||||
LTDC.HBP=5
|
||||
LTDC.HFP=5
|
||||
LTDC.HSync=5
|
||||
LTDC.IPParameters=ActiveW,HSync,HBP,HFP,VSync,DEPolarity,Layers,PixelFormat_L0,WindowX1_L0,WindowY1_L0,Red,Green,Alpha_L0,ImageWidth_L0,ImageHeight_L0
|
||||
LTDC.IPParameters=ActiveW,HSync,HBP,HFP,VSync,DEPolarity,Layers,PixelFormat_L0,WindowX1_L0,WindowY1_L0,Red,Green,Alpha_L0,ImageWidth_L0,ImageHeight_L0,VBP,VFP
|
||||
LTDC.ImageHeight_L0=480
|
||||
LTDC.ImageWidth_L0=320
|
||||
LTDC.Layers=0
|
||||
LTDC.PixelFormat_L0=LTDC_PIXEL_FORMAT_RGB888
|
||||
LTDC.Red=255
|
||||
LTDC.VBP=2
|
||||
LTDC.VFP=2
|
||||
LTDC.VSync=2
|
||||
LTDC.WindowX1_L0=320
|
||||
LTDC.WindowY1_L0=480
|
||||
|
|
2
Makefile
2
Makefile
|
@ -1,5 +1,5 @@
|
|||
##########################################################################################################################
|
||||
# File automatically-generated by tool: [projectgenerator] version: [3.17.1] date: [Tue Jan 17 17:58:08 CET 2023]
|
||||
# File automatically-generated by tool: [projectgenerator] version: [3.17.1] date: [Tue Jan 17 20:47:30 CET 2023]
|
||||
##########################################################################################################################
|
||||
|
||||
# ------------------------------------------------
|
||||
|
|
Loading…
Reference in New Issue