From 390fbb5acfe140fa4b65eac5180ae726381d3b4f Mon Sep 17 00:00:00 2001 From: Giovanni Di Sirio Date: Tue, 3 Mar 2015 09:13:43 +0000 Subject: MISRA-related fixes. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@7709 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/hal/boards/ST_STM32F0_DISCOVERY/board.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'os/hal/boards/ST_STM32F0_DISCOVERY') 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: -- cgit v1.2.3