summaryrefslogtreecommitdiff
path: root/drivers/chibios/serial_usart.h
diff options
context:
space:
mode:
authorJames Young <18669334+noroadsleft@users.noreply.github.com>2021-05-29 13:53:10 -0700
committerJames Young <18669334+noroadsleft@users.noreply.github.com>2021-05-29 13:53:10 -0700
commit7d1194de01ea94f065bd5176607b4d66279ef51b (patch)
tree337ab0498a929285a234518fee34a4d9dcf51656 /drivers/chibios/serial_usart.h
parente628051505cca7674c37b417ba91af1c69dbbd86 (diff)
run: qmk cformat --core-only
Diffstat (limited to 'drivers/chibios/serial_usart.h')
-rw-r--r--drivers/chibios/serial_usart.h20
1 files changed, 16 insertions, 4 deletions
diff --git a/drivers/chibios/serial_usart.h b/drivers/chibios/serial_usart.h
index d35b5d12c6..fee7b4d159 100644
--- a/drivers/chibios/serial_usart.h
+++ b/drivers/chibios/serial_usart.h
@@ -40,13 +40,25 @@
#endif
#if defined(USART1_REMAP)
-# define USART_REMAP do { (AFIO->MAPR |= AFIO_MAPR_USART1_REMAP); } while(0)
+# define USART_REMAP \
+ do { \
+ (AFIO->MAPR |= AFIO_MAPR_USART1_REMAP); \
+ } while (0)
#elif defined(USART2_REMAP)
-# define USART_REMAP do { (AFIO->MAPR |= AFIO_MAPR_USART2_REMAP); } while(0)
+# define USART_REMAP \
+ do { \
+ (AFIO->MAPR |= AFIO_MAPR_USART2_REMAP); \
+ } while (0)
#elif defined(USART3_PARTIALREMAP)
-# define USART_REMAP do { (AFIO->MAPR |= AFIO_MAPR_USART3_REMAP_PARTIALREMAP); } while(0)
+# define USART_REMAP \
+ do { \
+ (AFIO->MAPR |= AFIO_MAPR_USART3_REMAP_PARTIALREMAP); \
+ } while (0)
#elif defined(USART3_FULLREMAP)
-# define USART_REMAP do { (AFIO->MAPR |= AFIO_MAPR_USART3_REMAP_FULLREMAP); } while(0)
+# define USART_REMAP \
+ do { \
+ (AFIO->MAPR |= AFIO_MAPR_USART3_REMAP_FULLREMAP); \
+ } while (0)
#endif
#ifndef SELECT_SOFT_SERIAL_SPEED