diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2011-11-02 17:36:00 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2011-11-02 17:36:00 +0000 |
commit | dc71ea034dc35f6a394a71831c95a73cd2ae06e7 (patch) | |
tree | db7f4fcb699af1ef34eed29a2cd0c645bd4b5ef7 /boards/ST_STM32L_DISCOVERY | |
parent | 656ec7b1fbd543c5c32a9eee3292cdf2f70701f8 (diff) | |
download | ChibiOS-dc71ea034dc35f6a394a71831c95a73cd2ae06e7.tar.gz ChibiOS-dc71ea034dc35f6a394a71831c95a73cd2ae06e7.tar.bz2 ChibiOS-dc71ea034dc35f6a394a71831c95a73cd2ae06e7.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@3460 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'boards/ST_STM32L_DISCOVERY')
-rw-r--r-- | boards/ST_STM32L_DISCOVERY/board.h | 21 |
1 files changed, 3 insertions, 18 deletions
diff --git a/boards/ST_STM32L_DISCOVERY/board.h b/boards/ST_STM32L_DISCOVERY/board.h index f91998a59..6326c5e4d 100644 --- a/boards/ST_STM32L_DISCOVERY/board.h +++ b/boards/ST_STM32L_DISCOVERY/board.h @@ -22,13 +22,13 @@ #define _BOARD_H_
/*
- * Setup for STMicroelectronics STM32VL-Discovery board.
+ * Setup for STMicroelectronics STM32L-Discovery board.
*/
/*
* Board identifier.
*/
-#define BOARD_ST_STM32VL_DISCOVERY
+#define BOARD_ST_STM32L_DISCOVERY
#define BOARD_NAME "ST STM32L-Discovery"
/*
@@ -69,22 +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_AF0(n) (0U << ((n % 8) * 4))
-#define PIN_AFIO_AF1(n) (1U << ((n % 8) * 4))
-#define PIN_AFIO_AF2(n) (2U << ((n % 8) * 4))
-#define PIN_AFIO_AF3(n) (3U << ((n % 8) * 4))
-#define PIN_AFIO_AF4(n) (4U << ((n % 8) * 4))
-#define PIN_AFIO_AF5(n) (5U << ((n % 8) * 4))
-#define PIN_AFIO_AF6(n) (6U << ((n % 8) * 4))
-#define PIN_AFIO_AF7(n) (7U << ((n % 8) * 4))
-#define PIN_AFIO_AF8(n) (8U << ((n % 8) * 4))
-#define PIN_AFIO_AF9(n) (9U << ((n % 8) * 4))
-#define PIN_AFIO_AF10(n) (10U << ((n % 8) * 4))
-#define PIN_AFIO_AF11(n) (11U << ((n % 8) * 4))
-#define PIN_AFIO_AF12(n) (12U << ((n % 8) * 4))
-#define PIN_AFIO_AF13(n) (13U << ((n % 8) * 4))
-#define PIN_AFIO_AF14(n) (14U << ((n % 8) * 4))
-#define PIN_AFIO_AF15(n) (15U << ((n % 8) * 4))
+#define PIN_AFIO_AF(n, v) ((v)U << ((n % 8) * 4))
/*
* Port A setup.
|