1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-12 17:38:13 +00:00

fixup! feat(core): display driver for T3W1

This commit is contained in:
tychovrahe 2024-12-10 10:41:11 +01:00
parent ac2b244107
commit f779a062b5

View File

@ -181,7 +181,8 @@ static void display_dsi_init(void) {
__HAL_DSI_ENABLE(&drv->hlcd_dsi); __HAL_DSI_ENABLE(&drv->hlcd_dsi);
} }
void display_ltdc_config_layer(LTDC_HandleTypeDef *hltdc, uint32_t fb_addr) { static void display_ltdc_config_layer(LTDC_HandleTypeDef *hltdc,
uint32_t fb_addr) {
LTDC_LayerCfgTypeDef LayerCfg = {0}; LTDC_LayerCfgTypeDef LayerCfg = {0};
/* LTDC layer configuration */ /* LTDC layer configuration */
@ -208,7 +209,7 @@ void display_ltdc_config_layer(LTDC_HandleTypeDef *hltdc, uint32_t fb_addr) {
HAL_LTDC_ConfigLayer(hltdc, &LayerCfg, LTDC_LAYER_1); HAL_LTDC_ConfigLayer(hltdc, &LayerCfg, LTDC_LAYER_1);
} }
void display_ltdc_init(void) { static void display_ltdc_init(void) {
display_driver_t *drv = &g_display_driver; display_driver_t *drv = &g_display_driver;
__HAL_RCC_LTDC_CLK_ENABLE(); __HAL_RCC_LTDC_CLK_ENABLE();