summaryrefslogtreecommitdiff
path: root/chip/stm32/usart.h
diff options
context:
space:
mode:
Diffstat (limited to 'chip/stm32/usart.h')
-rw-r--r--chip/stm32/usart.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/chip/stm32/usart.h b/chip/stm32/usart.h
index 53b13762e9..771c0ccfde 100644
--- a/chip/stm32/usart.h
+++ b/chip/stm32/usart.h
@@ -134,9 +134,9 @@ struct usart_config {
int baud;
/* Other flags (rx/tx inversion, half-duplex). */
-#define USART_CONFIG_FLAG_RX_INV (1 << 0)
-#define USART_CONFIG_FLAG_TX_INV (1 << 1)
-#define USART_CONFIG_FLAG_HDSEL (1 << 2)
+#define USART_CONFIG_FLAG_RX_INV BIT(0)
+#define USART_CONFIG_FLAG_TX_INV BIT(1)
+#define USART_CONFIG_FLAG_HDSEL BIT(2)
unsigned int flags;
struct consumer consumer;