diff options
Diffstat (limited to 'os/hal/boards')
-rw-r--r-- | os/hal/boards/ST_NUCLEO_L476RG/board.h | 5 | ||||
-rw-r--r-- | os/hal/boards/ST_NUCLEO_L476RG/cfg/board.chcfg | 2 |
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" />
|