From b736858c5bbed206d2f40dcdf8052646b096db86 Mon Sep 17 00:00:00 2001 From: gdisirio Date: Sun, 5 Aug 2012 12:40:57 +0000 Subject: [PATCH] git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@4534 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- boards/ST_STM32L_DISCOVERY/board.c | 8 +------- boards/ST_STM32L_DISCOVERY/board.h | 7 ++++--- boards/ST_STM32L_DISCOVERY/cfg/board.chxml | 6 +++--- .../boards/stm32f0xx/templates/board.c.ftl | 2 +- .../boards/stm32l1xx/templates/board.c.ftl | 8 +------- ...org.chibios.tools.eclipse.config_1.0.3.jar | Bin 1852693 -> 1852636 bytes 6 files changed, 10 insertions(+), 21 deletions(-) diff --git a/boards/ST_STM32L_DISCOVERY/board.c b/boards/ST_STM32L_DISCOVERY/board.c index b8f1272f9..2148fa754 100644 --- a/boards/ST_STM32L_DISCOVERY/board.c +++ b/boards/ST_STM32L_DISCOVERY/board.c @@ -39,14 +39,8 @@ const PALConfig pal_default_config = VAL_GPIOD_ODR, VAL_GPIOD_AFRL, VAL_GPIOD_AFRH}, {VAL_GPIOE_MODER, VAL_GPIOE_OTYPER, VAL_GPIOE_OSPEEDR, VAL_GPIOE_PUPDR, VAL_GPIOE_ODR, VAL_GPIOE_AFRL, VAL_GPIOE_AFRH}, - {VAL_GPIOF_MODER, VAL_GPIOF_OTYPER, VAL_GPIOF_OSPEEDR, VAL_GPIOF_PUPDR, - VAL_GPIOF_ODR, VAL_GPIOF_AFRL, VAL_GPIOF_AFRH}, - {VAL_GPIOG_MODER, VAL_GPIOG_OTYPER, VAL_GPIOG_OSPEEDR, VAL_GPIOG_PUPDR, - VAL_GPIOG_ODR, VAL_GPIOG_AFRL, VAL_GPIOG_AFRH}, {VAL_GPIOH_MODER, VAL_GPIOH_OTYPER, VAL_GPIOH_OSPEEDR, VAL_GPIOH_PUPDR, - VAL_GPIOH_ODR, VAL_GPIOH_AFRL, VAL_GPIOH_AFRH}, - {VAL_GPIOI_MODER, VAL_GPIOI_OTYPER, VAL_GPIOI_OSPEEDR, VAL_GPIOI_PUPDR, - VAL_GPIOI_ODR, VAL_GPIOI_AFRL, VAL_GPIOI_AFRH} + VAL_GPIOH_ODR, VAL_GPIOH_AFRL, VAL_GPIOH_AFRH} }; #endif diff --git a/boards/ST_STM32L_DISCOVERY/board.h b/boards/ST_STM32L_DISCOVERY/board.h index 6a648deb1..7ff3022dd 100644 --- a/boards/ST_STM32L_DISCOVERY/board.h +++ b/boards/ST_STM32L_DISCOVERY/board.h @@ -34,16 +34,17 @@ /* * Board oscillators-related settings. - * NOTE: LSE not fitted. + * NOTE: HSE not fitted. */ #if !defined(STM32_LSECLK) -#define STM32_LSECLK 0 +#define STM32_LSECLK 32768 #endif #if !defined(STM32_HSECLK) -#define STM32_HSECLK 8000000 +#define STM32_HSECLK 0 #endif +#define STM32_HSE_BYPASS /* * MCU type as defined in the ST header file stm32l1xx.h. diff --git a/boards/ST_STM32L_DISCOVERY/cfg/board.chxml b/boards/ST_STM32L_DISCOVERY/cfg/board.chxml index 3117b23be..b9f27b8b9 100644 --- a/boards/ST_STM32L_DISCOVERY/cfg/board.chxml +++ b/boards/ST_STM32L_DISCOVERY/cfg/board.chxml @@ -7,9 +7,9 @@ ST_STM32L_DISCOVERY + HSEFrequency="0" + HSEBypass="true" + LSEFrequency="32768" /> 0xq&HY4NZ+w*At~bcWQ*GXy&#+xq+Fa4q%NEV zq*Zu(NOZg{q|10aNTYaFNEE_GNcTy~Xov+M{A=}$V+0c@mJloU zUJAU8M7|eIjwqJT z)#9aa>$d|ah0u=^lS&km!t#LQ0nZVWB0RwJ;)(6j1RjKVAo4)sv`dpY3@9YA$vmv! zL6`>-9z=N%<3XGU2_7gsNb<0f2PsYxdsPG%4#Z|qd64EohKJQ0Y=-P3O`gDc+8`V8 z1{#*xYgTtb!y^Q#hfl|m4MTLu&~Q3|yo1lh*~ma{h(Mz!3Aq4w!UrfK&)^pK86cfXXZQ5`cV1}#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