Skip to content

Commit

Permalink
Fix Serial APB Clock Sources
Browse files Browse the repository at this point in the history
The apbclock sources for lpuart1, usart6, usart10, and usart11 were set to the wrong PCLK (default).
  • Loading branch information
kywwilson11 authored and xiaoxiang781216 committed Nov 7, 2024
1 parent 6cf1681 commit ad2db7a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions arch/arm/src/stm32h5/stm32_serial.c
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,7 @@ static struct stm32_serial_s g_lpuart1priv =
.bits = CONFIG_LPUART1_BITS,
.stopbits2 = CONFIG_LPUART1_2STOP,
.baud = CONFIG_LPUART1_BAUD,
.apbclock = STM32_PCLK2_FREQUENCY,
.apbclock = STM32_PCLK3_FREQUENCY,
.usartbase = STM32_LPUART1_BASE,
.tx_gpio = GPIO_LPUART1_TX,
.rx_gpio = GPIO_LPUART1_RX,
Expand Down Expand Up @@ -849,7 +849,7 @@ static struct stm32_serial_s g_usart6priv =
.bits = CONFIG_USART6_BITS,
.stopbits2 = CONFIG_USART6_2STOP,
.baud = CONFIG_USART6_BAUD,
.apbclock = STM32_PCLK2_FREQUENCY,
.apbclock = STM32_PCLK1_FREQUENCY,
.usartbase = STM32_USART6_BASE,
.tx_gpio = GPIO_USART6_TX,
.rx_gpio = GPIO_USART6_RX,
Expand Down Expand Up @@ -1097,7 +1097,7 @@ static struct stm32_serial_s g_usart10priv =
.bits = CONFIG_USART10_BITS,
.stopbits2 = CONFIG_USART10_2STOP,
.baud = CONFIG_USART10_BAUD,
.apbclock = STM32_PCLK2_FREQUENCY,
.apbclock = STM32_PCLK1_FREQUENCY,
.usartbase = STM32_USART10_BASE,
.tx_gpio = GPIO_USART10_TX,
.rx_gpio = GPIO_USART10_RX,
Expand Down Expand Up @@ -1159,7 +1159,7 @@ static struct stm32_serial_s g_usart11priv =
.bits = CONFIG_USART11_BITS,
.stopbits2 = CONFIG_USART11_2STOP,
.baud = CONFIG_USART11_BAUD,
.apbclock = STM32_PCLK2_FREQUENCY,
.apbclock = STM32_PCLK1_FREQUENCY,
.usartbase = STM32_USART11_BASE,
.tx_gpio = GPIO_USART11_TX,
.rx_gpio = GPIO_USART11_RX,
Expand Down

0 comments on commit ad2db7a

Please sign in to comment.