aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/boards/ST_NUCLEO_L476RG
diff options
context:
space:
mode:
authorGiovanni Di Sirio <gdisirio@gmail.com>2015-11-13 15:42:33 +0000
committerGiovanni Di Sirio <gdisirio@gmail.com>2015-11-13 15:42:33 +0000
commit4016e0a368ba94a66874b3f0272a4739967e5404 (patch)
tree0b848e39e583ccaccd9a956eef72acbe1369cf72 /os/hal/boards/ST_NUCLEO_L476RG
parenta4d9054506f3d1fedfd7d8436e12bb45ae8e6e3e (diff)
downloadChibiOS-4016e0a368ba94a66874b3f0272a4739967e5404.tar.gz
ChibiOS-4016e0a368ba94a66874b3f0272a4739967e5404.tar.bz2
ChibiOS-4016e0a368ba94a66874b3f0272a4739967e5404.zip
Added MSI PLL support to L4.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@8483 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/boards/ST_NUCLEO_L476RG')
-rw-r--r--os/hal/boards/ST_NUCLEO_L476RG/board.h5
-rw-r--r--os/hal/boards/ST_NUCLEO_L476RG/cfg/board.chcfg2
2 files changed, 4 insertions, 3 deletions
diff --git a/os/hal/boards/ST_NUCLEO_L476RG/board.h b/os/hal/boards/ST_NUCLEO_L476RG/board.h
index e72c7914f..0ec56740a 100644
--- a/os/hal/boards/ST_NUCLEO_L476RG/board.h
+++ b/os/hal/boards/ST_NUCLEO_L476RG/board.h
@@ -29,13 +29,14 @@
/*
* Board oscillators-related settings.
- * NOTE: LSE not fitted.
* NOTE: HSE not fitted.
*/
#if !defined(STM32_LSECLK)
-#define STM32_LSECLK 0U
+#define STM32_LSECLK 32768U
#endif
+#define STM32_LSEDRV (3U << 3U)
+
#if !defined(STM32_HSECLK)
#define STM32_HSECLK 0U
#endif
diff --git a/os/hal/boards/ST_NUCLEO_L476RG/cfg/board.chcfg b/os/hal/boards/ST_NUCLEO_L476RG/cfg/board.chcfg
index b3a0fff83..b4531247f 100644
--- a/os/hal/boards/ST_NUCLEO_L476RG/cfg/board.chcfg
+++ b/os/hal/boards/ST_NUCLEO_L476RG/cfg/board.chcfg
@@ -15,7 +15,7 @@
<clocks
HSEFrequency="0"
HSEBypass="false"
- LSEFrequency="0"
+ LSEFrequency="32768"
LSEBypass="false"
LSEDrive="3 High Drive (default)"
VDD="300" />