diff options
Diffstat (limited to 'os/hal/boards/ST_STM3220G_EVAL/board.h')
-rw-r--r-- | os/hal/boards/ST_STM3220G_EVAL/board.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/os/hal/boards/ST_STM3220G_EVAL/board.h b/os/hal/boards/ST_STM3220G_EVAL/board.h index b36fa47bc..3f581ccb4 100644 --- a/os/hal/boards/ST_STM3220G_EVAL/board.h +++ b/os/hal/boards/ST_STM3220G_EVAL/board.h @@ -80,7 +80,7 @@ #define PIN_PUDR_FLOATING(n) (0 << ((n) * 2))
#define PIN_PUDR_PULLUP(n) (1 << ((n) * 2))
#define PIN_PUDR_PULLDOWN(n) (2 << ((n) * 2))
-#define PIN_AFIO_AF(n, v) ((v##U) << ((n % 8) * 4))
+#define PIN_AFIO_AF(n, v) ((v##U) << (((n) % 8) * 4))
/*
* Port A setup.
|