aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/boards/ST_STM32373C_EVAL/board.h
diff options
context:
space:
mode:
Diffstat (limited to 'os/hal/boards/ST_STM32373C_EVAL/board.h')
-rw-r--r--os/hal/boards/ST_STM32373C_EVAL/board.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/os/hal/boards/ST_STM32373C_EVAL/board.h b/os/hal/boards/ST_STM32373C_EVAL/board.h
index 14cf0f3f0..dcb05df3b 100644
--- a/os/hal/boards/ST_STM32373C_EVAL/board.h
+++ b/os/hal/boards/ST_STM32373C_EVAL/board.h
@@ -170,7 +170,7 @@
#define PIN_PUPDR_FLOATING(n) (0U << ((n) * 2))
#define PIN_PUPDR_PULLUP(n) (1U << ((n) * 2))
#define PIN_PUPDR_PULLDOWN(n) (2U << ((n) * 2))
-#define PIN_AFIO_AF(n, v) ((v##U) << ((n % 8) * 4))
+#define PIN_AFIO_AF(n, v) ((v##U) << (((n) % 8) * 4))
/*
* GPIOA setup: