summaryrefslogtreecommitdiff
path: root/chip/stm32/uart.c
diff options
context:
space:
mode:
Diffstat (limited to 'chip/stm32/uart.c')
-rw-r--r--chip/stm32/uart.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/chip/stm32/uart.c b/chip/stm32/uart.c
index f2650591ed..5e21a128d4 100644
--- a/chip/stm32/uart.c
+++ b/chip/stm32/uart.c
@@ -192,7 +192,7 @@ static void uart_freq_change(void)
{
int div = DIV_ROUND_NEAREST(clock_get_freq(), CONFIG_UART_BAUD_RATE);
-#ifdef CHIP_FAMILY_stm32l
+#ifdef CHIP_FAMILY_STM32L
if (div / 16 > 0) {
/*
* CPU clock is high enough to support x16 oversampling.
@@ -254,7 +254,7 @@ void uart_init(void)
STM32_USART_CR1(UARTN) |= STM32_USART_CR1_RXNEIE;
#endif
-#ifdef CHIP_FAMILY_stm32l
+#ifdef CHIP_FAMILY_STM32L
/* Use single-bit sampling */
STM32_USART_CR3(UARTN) |= STM32_USART_CR3_ONEBIT;
#endif