Skip to content

Commit f22cd54

Browse files
committed
chore(C0): update hal conf default
Signed-off-by: Frederic Pillon <[email protected]>
1 parent 09bf022 commit f22cd54

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

system/STM32C0xx/stm32c0xx_hal_conf_default.h

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ extern "C" {
119119
* (when HSE is used as system clock source, directly or through the PLL).
120120
*/
121121
#if !defined (HSE_VALUE)
122-
#define HSE_VALUE (48000000U) /*!< Value of the External oscillator in Hz */
122+
#define HSE_VALUE (24000000U) /*!< Value of the External oscillator in Hz */
123123
#endif /* HSE_VALUE */
124124

125125
#if !defined (HSE_STARTUP_TIMEOUT)
@@ -135,6 +135,18 @@ extern "C" {
135135
#define HSI_VALUE (48000000U) /*!< Value of the Internal oscillator in Hz*/
136136
#endif /* HSI_VALUE */
137137

138+
/**
139+
* @brief Internal High Speed oscillator (HSI48) value for USB FS, SDMMC and RNG.
140+
* This internal oscillator is mainly dedicated to provide a high precision clock to
141+
* the USB peripheral by means of a special Clock Recovery System (CRS) circuitry.
142+
* When the CRS is not used, the HSI48 RC oscillator runs on it default frequency
143+
* which is subject to manufacturing process variations.
144+
*/
145+
#if !defined (HSI48_VALUE)
146+
#define HSI48_VALUE 48000000U /*!< Value of the Internal High Speed oscillator for USB FS/SDMMC/RNG in Hz.
147+
The real value my vary depending on manufacturing process variations.*/
148+
#endif /* HSI48_VALUE */
149+
138150
/**
139151
* @brief Internal Low Speed oscillator (LSI) value.
140152
*/

0 commit comments

Comments
 (0)