/* Enable clocking on AFIO */
RCC->APB2ENR |= RCC_APB2_AFIO;
/* Enable clocking on AFIO */
RCC->APB2ENR |= RCC_APB2_AFIO;
+ RCC->APB2ENR |= gpio_uart[port].sysctl;
/* Configure USART pins */
if (port == USART1_PORT)
{
/* Configure USART pins */
if (port == USART1_PORT)
{
- RCC->APB2ENR |= gpio_uart[port].sysctl;
RCC->APB2ENR |= gpio_uart[port].sysctl1;
}
else
{
RCC->APB2ENR |= gpio_uart[port].sysctl1;
}
else
{
- RCC->APB1ENR |= gpio_uart[port].sysctl;
RCC->APB1ENR |= gpio_uart[port].sysctl1;
}
RCC->APB1ENR |= gpio_uart[port].sysctl1;
}