Loading...
 
Skip to main content

System Workbench for STM32


Help: Enable UART2 Peripheral Clock

Hello, I am new to STM32 UART programming and need some help. I have set up the GPIOA clock:

__HAL_RCC_GPIOA_CLK_ENABLE(); // stm32f4xx_hal_rcc.h

Now I need to enable the UART2 Peripheral Clock but I don't know the command. Can anyone help me please.

Thank you,
Joe

I see the command: __HAL_RCC_USART2_CLK_ENABLE

can I use that to enable the UART Peripheral Clock?