aboutsummaryrefslogtreecommitdiffstats
path: root/boards/ST_STM32L_DISCOVERY/board.h
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2011-12-03 07:46:27 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2011-12-03 07:46:27 +0000
commita8a85358455c96d2ca9acd4697b25cc746ebb359 (patch)
tree2ccd442b7f1a8222fa68c30649c4b64465e08342 /boards/ST_STM32L_DISCOVERY/board.h
parent1965f6c027c2e4ade1f2005d822009b511f346d9 (diff)
downloadChibiOS-a8a85358455c96d2ca9acd4697b25cc746ebb359.tar.gz
ChibiOS-a8a85358455c96d2ca9acd4697b25cc746ebb359.tar.bz2
ChibiOS-a8a85358455c96d2ca9acd4697b25cc746ebb359.zip
Fixed bug 3449076.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@3551 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'boards/ST_STM32L_DISCOVERY/board.h')
-rw-r--r--boards/ST_STM32L_DISCOVERY/board.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/boards/ST_STM32L_DISCOVERY/board.h b/boards/ST_STM32L_DISCOVERY/board.h
index 6326c5e4d..978d91456 100644
--- a/boards/ST_STM32L_DISCOVERY/board.h
+++ b/boards/ST_STM32L_DISCOVERY/board.h
@@ -69,7 +69,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.