aboutsummaryrefslogtreecommitdiffstats
path: root/ports/ARMCM3-STM32F103/stm32_serial.h
diff options
context:
space:
mode:
Diffstat (limited to 'ports/ARMCM3-STM32F103/stm32_serial.h')
-rw-r--r--ports/ARMCM3-STM32F103/stm32_serial.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/ports/ARMCM3-STM32F103/stm32_serial.h b/ports/ARMCM3-STM32F103/stm32_serial.h
index 0d05c7f12..d14270a52 100644
--- a/ports/ARMCM3-STM32F103/stm32_serial.h
+++ b/ports/ARMCM3-STM32F103/stm32_serial.h
@@ -67,10 +67,10 @@
#define CR2_CPOL (1 << 10)
#define CR2_CLKEN (1 << 11)
#define CR2_STOP_MASK (3 << 12)
-#define CR2_STOP1_BITS (0 << 12
-#define CR2_STOP0P5_BITS (1 << 12
-#define CR2_STOP2_BITS (2 << 12
-#define CR2_STOP1P5_BITS (3 << 12
+#define CR2_STOP1_BITS (0 << 12)
+#define CR2_STOP0P5_BITS (1 << 12)
+#define CR2_STOP2_BITS (2 << 12)
+#define CR2_STOP1P5_BITS (3 << 12)
#define CR2_LINEN (1 << 14)
#define CR3_EIE (1 << 0)