Skip to content

Commit 29d82c4

Browse files
patricklaffpistm
andauthored
Update variants/STM32U5xx/U595Z(I-J)TxQ_U599Z(I-J)TxQ_U5A5ZJTxQ_U5A9ZJTxQ/generic_clock.c
Configure LPUART1 clock to be able to have 9600 available as suggested by @fpistm Co-authored-by: Frederic Pillon <frederic.pillon@st.com> Signed-off-by: patricklaf <patrick.lafarguette@gmail.com>
1 parent 2081fcf commit 29d82c4

File tree

1 file changed

+2
-1
lines changed
  • variants/STM32U5xx/U595Z(I-J)TxQ_U599Z(I-J)TxQ_U5A5ZJTxQ_U5A9ZJTxQ

1 file changed

+2
-1
lines changed

variants/STM32U5xx/U595Z(I-J)TxQ_U599Z(I-J)TxQ_U5A5ZJTxQ_U5A9ZJTxQ/generic_clock.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,8 @@ WEAK void SystemClock_Config(void)
7272
Error_Handler();
7373
}
7474
PeriphClkInit.PeriphClockSelection = RCC_PERIPHCLK_ADCDAC | RCC_PERIPHCLK_DAC1
75-
| RCC_PERIPHCLK_CLK48;
75+
| RCC_PERIPHCLK_CLK48 | RCC_PERIPHCLK_LPUART1;
76+
PeriphClkInit.Lpuart1ClockSelection = RCC_LPUART1CLKSOURCE_HSI;
7677
PeriphClkInit.AdcDacClockSelection = RCC_ADCDACCLKSOURCE_HSI;
7778
PeriphClkInit.Dac1ClockSelection = RCC_DAC1CLKSOURCE_LSI;
7879
PeriphClkInit.IclkClockSelection = RCC_CLK48CLKSOURCE_HSI48;

0 commit comments

Comments
 (0)