From a746de44e1e224ee46afac1670581a50448afa85 Mon Sep 17 00:00:00 2001 From: gdisirio Date: Tue, 14 Jun 2011 08:10:38 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@3043 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- boards/ST_STM32L_DISCOVERY/board.c | 4 ++-- boards/ST_STM32L_DISCOVERY/board.h | 14 ++++++-------- boards/ST_STM32L_DISCOVERY/board.mk | 4 ++-- 3 files changed, 10 insertions(+), 12 deletions(-) (limited to 'boards/ST_STM32L_DISCOVERY') 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 -- cgit v1.2.3