diff options
author | Giovanni Di Sirio <gdisirio@gmail.com> | 2015-03-03 09:13:43 +0000 |
---|---|---|
committer | Giovanni Di Sirio <gdisirio@gmail.com> | 2015-03-03 09:13:43 +0000 |
commit | 390fbb5acfe140fa4b65eac5180ae726381d3b4f (patch) | |
tree | aebfac2b59735c77466422d4eb464636ed2d9dcd /os/hal/boards/OLIMEX_STM32_H407 | |
parent | 0e4fcbbfab410653c4f59df25de88556fcd87d6f (diff) | |
download | ChibiOS-390fbb5acfe140fa4b65eac5180ae726381d3b4f.tar.gz ChibiOS-390fbb5acfe140fa4b65eac5180ae726381d3b4f.tar.bz2 ChibiOS-390fbb5acfe140fa4b65eac5180ae726381d3b4f.zip |
MISRA-related fixes.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@7709 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/boards/OLIMEX_STM32_H407')
-rw-r--r-- | os/hal/boards/OLIMEX_STM32_H407/board.h | 2 |
1 files changed, 1 insertions, 1 deletions
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:
|