mirror of
https://github.com/apache/nuttx.git
synced 2026-10-19 12:48:48 +00:00
stm32h7x7xx: Setup UART1 and UART6 clocks as part of APB2 bringup if enabled.
This commit is contained in:
parent
3705202b85
commit
892b6393e3
1 changed files with 12 additions and 0 deletions
|
|
@ -492,6 +492,18 @@ static inline void rcc_enableapb2(void)
|
|||
regval |= RCC_APB2ENR_SDMMC2EN;
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_STM32H7_USART1
|
||||
/* USART1 clock enable */
|
||||
|
||||
regval |= RCC_APB2ENR_USART1EN;
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_STM32H7_USART6
|
||||
/* USART1 clock enable */
|
||||
|
||||
regval |= RCC_APB2ENR_USART6EN;
|
||||
#endif
|
||||
|
||||
putreg32(regval, STM32_RCC_APB2ENR); /* Enable peripherals */
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue