Fixing bug in STM32F746G-Discovery board file which resulted in bad color reproduction
This commit is contained in:
parent
fb100bcc25
commit
cb26bc2d37
@ -136,7 +136,7 @@ static void configureLcdPins(void)
|
|||||||
GPIOJ->AFRH |= ((uint32_t)0xE << 4*3);
|
GPIOJ->AFRH |= ((uint32_t)0xE << 4*3);
|
||||||
|
|
||||||
// PK0: LCD_G5
|
// PK0: LCD_G5
|
||||||
GPIOK->MODER |= GPIO_MODER_MODER0_0;
|
GPIOK->MODER |= GPIO_MODER_MODER0_1;
|
||||||
GPIOK->OTYPER &=~ GPIO_OTYPER_OT_0;
|
GPIOK->OTYPER &=~ GPIO_OTYPER_OT_0;
|
||||||
GPIOK->OSPEEDR |= GPIO_OSPEEDER_OSPEEDR0_0 | GPIO_OSPEEDER_OSPEEDR0_1;
|
GPIOK->OSPEEDR |= GPIO_OSPEEDER_OSPEEDR0_0 | GPIO_OSPEEDER_OSPEEDR0_1;
|
||||||
GPIOK->AFRL |= ((uint32_t)0xE << 4*0);
|
GPIOK->AFRL |= ((uint32_t)0xE << 4*0);
|
||||||
@ -181,7 +181,7 @@ static void configureLcdPins(void)
|
|||||||
GPIOG->MODER |= GPIO_MODER_MODER12_1;
|
GPIOG->MODER |= GPIO_MODER_MODER12_1;
|
||||||
GPIOG->OTYPER &=~ GPIO_OTYPER_OT_12;
|
GPIOG->OTYPER &=~ GPIO_OTYPER_OT_12;
|
||||||
GPIOG->OSPEEDR |= GPIO_OSPEEDER_OSPEEDR12_0 | GPIO_OSPEEDER_OSPEEDR12_1;
|
GPIOG->OSPEEDR |= GPIO_OSPEEDER_OSPEEDR12_0 | GPIO_OSPEEDER_OSPEEDR12_1;
|
||||||
GPIOG->AFRH |= ((uint32_t)0xE << 4*4);
|
GPIOG->AFRH |= ((uint32_t)0x9 << 4*4);
|
||||||
|
|
||||||
// PK4: LCD_B5
|
// PK4: LCD_B5
|
||||||
GPIOK->MODER |= GPIO_MODER_MODER4_1;
|
GPIOK->MODER |= GPIO_MODER_MODER4_1;
|
||||||
|
Loading…
Reference in New Issue
Block a user