aboutsummaryrefslogtreecommitdiffstats
path: root/boards
diff options
context:
space:
mode:
Diffstat (limited to 'boards')
-rw-r--r--boards/ST_STM32L_DISCOVERY/board.c8
-rw-r--r--boards/ST_STM32L_DISCOVERY/board.h7
-rw-r--r--boards/ST_STM32L_DISCOVERY/cfg/board.chxml6
3 files changed, 8 insertions, 13 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 @@
<board_id>ST_STM32L_DISCOVERY</board_id>
<board_functions></board_functions>
<clocks
- HSEFrequency="8000000"
- HSEBypass="false"
- LSEFrequency="0" />
+ HSEFrequency="0"
+ HSEBypass="true"
+ LSEFrequency="32768" />
<ports>
<GPIOA>
<pin0