summaryrefslogtreecommitdiff
path: root/chip/stm32/usart.c
diff options
context:
space:
mode:
Diffstat (limited to 'chip/stm32/usart.c')
-rw-r--r--chip/stm32/usart.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/chip/stm32/usart.c b/chip/stm32/usart.c
index 264fa35a75..29cb0b705f 100644
--- a/chip/stm32/usart.c
+++ b/chip/stm32/usart.c
@@ -76,6 +76,12 @@ void usart_init(struct usart_config const *config)
*(config->hw->clock_register) |= config->hw->clock_enable;
/*
+ * For STM32F3, A delay of 1 APB clock cycles is needed before we
+ * can access any USART register. Fortunately, we have
+ * gpio_config_module() below and thus don't need to add the delay.
+ */
+
+ /*
* Switch all GPIOs assigned to the USART module over to their USART
* alternate functions.
*/