[target-stm32f429i-disco]: Initial lcd support

This commit is contained in:
luka177
2022-07-22 10:29:20 +03:00
committed by Travis Geiselbrecht
parent 145e9a0d27
commit 014de968e1
4 changed files with 777 additions and 1 deletions

View File

@@ -13,12 +13,15 @@
#include <stm32f4xx_usart.h>
#include <stm32f4xx_rcc.h>
#include <stm32f4xx_gpio.h>
#include <stm32f4xx_ltdc.h>
#include <platform/stm32.h>
#include <platform/gpio.h>
#include <target.h>
#include <target/debugconfig.h>
#include <target/gpioconfig.h>
extern uint8_t STM_LCD_Init(void);
void target_early_init(void) {
#ifdef DEBUG_UART
#if DEBUG_UART == 1
@@ -38,6 +41,7 @@ void target_early_init(void) {
gpio_config(GPIO_LED1, GPIO_OUTPUT);
gpio_config(GPIO_LED2, GPIO_OUTPUT);
gpio_config(GPIO_LED3, GPIO_OUTPUT);
STM_LCD_Init();
}
void target_init(void) {