diff options
-rw-r--r-- | os/hal/boards/NONSTANDARD_STM32F4_BARTHESS1/board.h | 2 | ||||
-rw-r--r-- | os/hal/boards/OLIMEX_STM32_E407/board.h | 2 | ||||
-rw-r--r-- | os/hal/boards/OLIMEX_STM32_E407_REV_D/board.h | 2 | ||||
-rw-r--r-- | os/hal/boards/OLIMEX_STM32_H407/board.h | 2 | ||||
-rw-r--r-- | os/hal/boards/OLIMEX_STM32_P407/board.h | 2 | ||||
-rw-r--r-- | os/hal/boards/ST_NUCLEO_F030R8/board.h | 2 | ||||
-rw-r--r-- | os/hal/boards/ST_NUCLEO_F334R8/board.h | 2 | ||||
-rw-r--r-- | os/hal/boards/ST_NUCLEO_F401RE/board.h | 2 | ||||
-rw-r--r-- | os/hal/boards/ST_NUCLEO_F411RE/board.h | 2 | ||||
-rw-r--r-- | os/hal/boards/ST_NUCLEO_L152RE/board.h | 2 | ||||
-rw-r--r-- | os/hal/boards/ST_STM3220G_EVAL/board.h | 2 | ||||
-rw-r--r-- | os/hal/boards/ST_STM32373C_EVAL/board.h | 2 | ||||
-rw-r--r-- | os/hal/boards/ST_STM32F072B_DISCOVERY/board.h | 2 | ||||
-rw-r--r-- | os/hal/boards/ST_STM32F0_DISCOVERY/board.h | 2 | ||||
-rw-r--r-- | os/hal/boards/ST_STM32F3_DISCOVERY/board.h | 2 | ||||
-rw-r--r-- | os/hal/boards/ST_STM32F429I_DISCOVERY/board.h | 2 | ||||
-rw-r--r-- | os/hal/boards/ST_STM32F4_DISCOVERY/board.h | 2 | ||||
-rw-r--r-- | os/hal/boards/ST_STM32L_DISCOVERY/board.h | 2 |
18 files changed, 18 insertions, 18 deletions
diff --git a/os/hal/boards/NONSTANDARD_STM32F4_BARTHESS1/board.h b/os/hal/boards/NONSTANDARD_STM32F4_BARTHESS1/board.h index a3b9a51b8..e14bc158a 100644 --- a/os/hal/boards/NONSTANDARD_STM32F4_BARTHESS1/board.h +++ b/os/hal/boards/NONSTANDARD_STM32F4_BARTHESS1/board.h @@ -134,7 +134,7 @@ #define PIN_PUDR_FLOATING(n) (0U << ((n) * 2))
#define PIN_PUDR_PULLUP(n) (1U << ((n) * 2))
#define PIN_PUDR_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))
/*
* Port A setup.
diff --git a/os/hal/boards/OLIMEX_STM32_E407/board.h b/os/hal/boards/OLIMEX_STM32_E407/board.h index 6671a55c1..b17d62546 100644 --- a/os/hal/boards/OLIMEX_STM32_E407/board.h +++ b/os/hal/boards/OLIMEX_STM32_E407/board.h @@ -231,7 +231,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:
diff --git a/os/hal/boards/OLIMEX_STM32_E407_REV_D/board.h b/os/hal/boards/OLIMEX_STM32_E407_REV_D/board.h index 13d5792c1..5fba9e80d 100644 --- a/os/hal/boards/OLIMEX_STM32_E407_REV_D/board.h +++ b/os/hal/boards/OLIMEX_STM32_E407_REV_D/board.h @@ -231,7 +231,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:
diff --git a/os/hal/boards/OLIMEX_STM32_H407/board.h b/os/hal/boards/OLIMEX_STM32_H407/board.h index 2a56c9b05..84c1449b9 100644 --- a/os/hal/boards/OLIMEX_STM32_H407/board.h +++ b/os/hal/boards/OLIMEX_STM32_H407/board.h @@ -231,7 +231,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:
diff --git a/os/hal/boards/OLIMEX_STM32_P407/board.h b/os/hal/boards/OLIMEX_STM32_P407/board.h index 71d466888..b8e9bd5d3 100644 --- a/os/hal/boards/OLIMEX_STM32_P407/board.h +++ b/os/hal/boards/OLIMEX_STM32_P407/board.h @@ -196,7 +196,7 @@ #define PIN_PUDR_FLOATING(n) (0U << ((n) * 2))
#define PIN_PUDR_PULLUP(n) (1U << ((n) * 2))
#define PIN_PUDR_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))
/*
* Port A setup.
diff --git a/os/hal/boards/ST_NUCLEO_F030R8/board.h b/os/hal/boards/ST_NUCLEO_F030R8/board.h index bc18ebe19..0ecdc5764 100644 --- a/os/hal/boards/ST_NUCLEO_F030R8/board.h +++ b/os/hal/boards/ST_NUCLEO_F030R8/board.h @@ -156,7 +156,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:
diff --git a/os/hal/boards/ST_NUCLEO_F334R8/board.h b/os/hal/boards/ST_NUCLEO_F334R8/board.h index d0f779362..182c92a1e 100644 --- a/os/hal/boards/ST_NUCLEO_F334R8/board.h +++ b/os/hal/boards/ST_NUCLEO_F334R8/board.h @@ -172,7 +172,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:
diff --git a/os/hal/boards/ST_NUCLEO_F401RE/board.h b/os/hal/boards/ST_NUCLEO_F401RE/board.h index c16fb9e9e..2a2c32bba 100644 --- a/os/hal/boards/ST_NUCLEO_F401RE/board.h +++ b/os/hal/boards/ST_NUCLEO_F401RE/board.h @@ -228,7 +228,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:
diff --git a/os/hal/boards/ST_NUCLEO_F411RE/board.h b/os/hal/boards/ST_NUCLEO_F411RE/board.h index 56151400e..3574a6f5e 100644 --- a/os/hal/boards/ST_NUCLEO_F411RE/board.h +++ b/os/hal/boards/ST_NUCLEO_F411RE/board.h @@ -228,7 +228,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:
diff --git a/os/hal/boards/ST_NUCLEO_L152RE/board.h b/os/hal/boards/ST_NUCLEO_L152RE/board.h index 1c97f0d5c..91ec574e7 100644 --- a/os/hal/boards/ST_NUCLEO_L152RE/board.h +++ b/os/hal/boards/ST_NUCLEO_L152RE/board.h @@ -206,7 +206,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:
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.
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:
diff --git a/os/hal/boards/ST_STM32F072B_DISCOVERY/board.h b/os/hal/boards/ST_STM32F072B_DISCOVERY/board.h index 192d1aa73..6c816c5d1 100644 --- a/os/hal/boards/ST_STM32F072B_DISCOVERY/board.h +++ b/os/hal/boards/ST_STM32F072B_DISCOVERY/board.h @@ -156,7 +156,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:
diff --git a/os/hal/boards/ST_STM32F0_DISCOVERY/board.h b/os/hal/boards/ST_STM32F0_DISCOVERY/board.h index 7c4444b9d..0e8095268 100644 --- a/os/hal/boards/ST_STM32F0_DISCOVERY/board.h +++ b/os/hal/boards/ST_STM32F0_DISCOVERY/board.h @@ -156,7 +156,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:
diff --git a/os/hal/boards/ST_STM32F3_DISCOVERY/board.h b/os/hal/boards/ST_STM32F3_DISCOVERY/board.h index 7128d19b4..63831640d 100644 --- a/os/hal/boards/ST_STM32F3_DISCOVERY/board.h +++ b/os/hal/boards/ST_STM32F3_DISCOVERY/board.h @@ -173,7 +173,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:
diff --git a/os/hal/boards/ST_STM32F429I_DISCOVERY/board.h b/os/hal/boards/ST_STM32F429I_DISCOVERY/board.h index d58da2090..0915d70d0 100644 --- a/os/hal/boards/ST_STM32F429I_DISCOVERY/board.h +++ b/os/hal/boards/ST_STM32F429I_DISCOVERY/board.h @@ -227,7 +227,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:
diff --git a/os/hal/boards/ST_STM32F4_DISCOVERY/board.h b/os/hal/boards/ST_STM32F4_DISCOVERY/board.h index 9dc125374..56e9bd3ad 100644 --- a/os/hal/boards/ST_STM32F4_DISCOVERY/board.h +++ b/os/hal/boards/ST_STM32F4_DISCOVERY/board.h @@ -227,7 +227,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:
diff --git a/os/hal/boards/ST_STM32L_DISCOVERY/board.h b/os/hal/boards/ST_STM32L_DISCOVERY/board.h index 5fbeabcc1..4503fcc78 100644 --- a/os/hal/boards/ST_STM32L_DISCOVERY/board.h +++ b/os/hal/boards/ST_STM32L_DISCOVERY/board.h @@ -172,7 +172,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:
|