diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2011-06-14 08:10:38 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2011-06-14 08:10:38 +0000 |
commit | a746de44e1e224ee46afac1670581a50448afa85 (patch) | |
tree | 76f8a31266903fadc19435ab490af50c1eca4d77 /boards/ST_STM32L_DISCOVERY | |
parent | 792c06e58554c5ed4cb84e69fe4f6d9add173ec0 (diff) | |
download | ChibiOS-a746de44e1e224ee46afac1670581a50448afa85.tar.gz ChibiOS-a746de44e1e224ee46afac1670581a50448afa85.tar.bz2 ChibiOS-a746de44e1e224ee46afac1670581a50448afa85.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@3043 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'boards/ST_STM32L_DISCOVERY')
-rw-r--r-- | boards/ST_STM32L_DISCOVERY/board.c | 4 | ||||
-rw-r--r-- | boards/ST_STM32L_DISCOVERY/board.h | 14 | ||||
-rw-r--r-- | boards/ST_STM32L_DISCOVERY/board.mk | 4 |
3 files changed, 10 insertions, 12 deletions
diff --git a/boards/ST_STM32L_DISCOVERY/board.c b/boards/ST_STM32L_DISCOVERY/board.c index b8b98c05f..c1e142bf4 100644 --- a/boards/ST_STM32L_DISCOVERY/board.c +++ b/boards/ST_STM32L_DISCOVERY/board.c @@ -27,14 +27,14 @@ * This variable is used by the HAL when initializing the PAL driver.
*/
#if HAL_USE_PAL || defined(__DOXYGEN__)
-const PALConfig pal_default_config =
+/*const PALConfig pal_default_config =
{
{VAL_GPIOAODR, VAL_GPIOACRL, VAL_GPIOACRH},
{VAL_GPIOBODR, VAL_GPIOBCRL, VAL_GPIOBCRH},
{VAL_GPIOCODR, VAL_GPIOCCRL, VAL_GPIOCCRH},
{VAL_GPIODODR, VAL_GPIODCRL, VAL_GPIODCRH},
{VAL_GPIOEODR, VAL_GPIOECRL, VAL_GPIOECRH},
-};
+};*/
#endif
/*
diff --git a/boards/ST_STM32L_DISCOVERY/board.h b/boards/ST_STM32L_DISCOVERY/board.h index 943a90c45..bd652b768 100644 --- a/boards/ST_STM32L_DISCOVERY/board.h +++ b/boards/ST_STM32L_DISCOVERY/board.h @@ -29,29 +29,27 @@ * Board identifier.
*/
#define BOARD_ST_STM32VL_DISCOVERY
-#define BOARD_NAME "ST STM32VL-Discovery"
+#define BOARD_NAME "ST STM32L-Discovery"
/*
* Board frequencies.
+ * NOTE: The HSE crystal is not fitted by default on the board.
*/
#define STM32_LSECLK 32768
#define STM32_HSECLK 8000000
/*
- * MCU type, supported types are defined in ./os/hal/platforms/hal_lld.h.
+ * MCU type as defined in the ST header file stm32l1xx.h.
*/
-#define STM32F10X_MD_VL
+#define STM32L1XX_MD
/*
* IO pins assignments.
*/
#define GPIOA_BUTTON 0
-#define GPIOA_SPI1NSS 4
-#define GPIOB_SPI2NSS 12
-
-#define GPIOC_LED4 8
-#define GPIOC_LED3 9
+#define GPIOB_LED4 6
+#define GPIOB_LED3 7
/*
* I/O ports initial setup, this configuration is established soon after reset
diff --git a/boards/ST_STM32L_DISCOVERY/board.mk b/boards/ST_STM32L_DISCOVERY/board.mk index 36467943c..7e3fdd8e3 100644 --- a/boards/ST_STM32L_DISCOVERY/board.mk +++ b/boards/ST_STM32L_DISCOVERY/board.mk @@ -1,5 +1,5 @@ # List of all the board related files.
-BOARDSRC = ${CHIBIOS}/boards/ST_STM32VL_DISCOVERY/board.c
+BOARDSRC = ${CHIBIOS}/boards/ST_STM32L_DISCOVERY/board.c
# Required include directories
-BOARDINC = ${CHIBIOS}/boards/ST_STM32VL_DISCOVERY
+BOARDINC = ${CHIBIOS}/boards/ST_STM32L_DISCOVERY
|