Skip to content

Commit 4b4115f

Browse files
jkentkarlp
authored andcommitted
stm32f429: lcd-dma: Fix LCD clock shift
RCC_DCKCFGR was missing a shift for register write
1 parent 9b7c2c3 commit 4b4115f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • examples/stm32/f4/stm32f429i-discovery/lcd-dma

examples/stm32/f4/stm32f429i-discovery/lcd-dma/lcd-dma.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ static void lcd_dma_init(void)
164164
RCC_PLLSAICFGR = (sain << RCC_PLLSAICFGR_PLLSAIN_SHIFT |
165165
saiq << RCC_PLLSAICFGR_PLLSAIQ_SHIFT |
166166
sair << RCC_PLLSAICFGR_PLLSAIR_SHIFT);
167-
RCC_DCKCFGR |= RCC_DCKCFGR_PLLSAIDIVR_DIVR_8;
167+
RCC_DCKCFGR |= RCC_DCKCFGR_PLLSAIDIVR_DIVR_8 << RCC_DCKCFGR_PLLSAIDIVR_SHIFT;
168168
RCC_CR |= RCC_CR_PLLSAION;
169169
while ((RCC_CR & RCC_CR_PLLSAIRDY) == 0) {
170170
continue;

0 commit comments

Comments
 (0)