Skip to content

Commit

Permalink
FIX: enable USARTs
Browse files Browse the repository at this point in the history
  • Loading branch information
r2axz committed Nov 18, 2020
1 parent f6ad8d8 commit eaa5b40
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions usb_cdc.c
Original file line number Diff line number Diff line change
Expand Up @@ -583,6 +583,8 @@ void usb_cdc_reset() {
/* Configuration Mode Pin */
gpio_pin_init(&device_config->config_pin);
/* USART & DMA Reset and Setup */
RCC->APB2ENR |= RCC_APB2ENR_USART1EN;
RCC->APB1ENR |= RCC_APB1ENR_USART2EN | RCC_APB1ENR_USART3EN;
RCC->AHBENR |= RCC_AHBENR_DMA1EN;
RCC->APB2RSTR |= RCC_APB2RSTR_USART1RST;
RCC->APB1RSTR |= RCC_APB1RSTR_USART2RST;
Expand Down

0 comments on commit eaa5b40

Please # to comment.