diff --git a/platform/stm32f429/init_lcd.c b/platform/stm32f429/init_lcd.c index b7406cbc3..aa4d65887 100644 --- a/platform/stm32f429/init_lcd.c +++ b/platform/stm32f429/init_lcd.c @@ -133,7 +133,7 @@ static void init_rgb_gpios() { RCC_AHB1ENR |= ( GPIOAEN | GPIOBEN | GPIOCEN | GPIODEN | GPIOEEN | GPIOFEN | GPIOGEN | GPIOHEN | - GPIOIEN | GPIOJEN | GPIOJEN + GPIOIEN | GPIOJEN | GPIOKEN ); // The LTDC is always mapped to AF14 @@ -141,6 +141,7 @@ static void init_rgb_gpios() { for (int i=0; igroup, pin->number), AFR(pin->number), 14); + REGISTER_SET_VALUE(GPIO_MODER(pin->group), MODER(pin->number), GPIO_MODE_ALTERNATE_FUNCTION); } //FIXME: Apprently DMA should be enabled?