Skip to content

Commit c761a5e

Browse files
bcostmBogdan Marinescu
authored andcommitted
[NUCLEO_F401RE] Add auto clock configuration (HSE/HSI)
Solve also the problem with the SetSysClock function not declared in sleep.c Conflicts: libraries/mbed/targets/hal/TARGET_STM/TARGET_NUCLEO_F401RE/i2c_api.c
1 parent fc2970a commit c761a5e

File tree

6 files changed

+407
-57
lines changed

6 files changed

+407
-57
lines changed

libraries/mbed/targets/cmsis/TARGET_STM/TARGET_NUCLEO_F401RE/stm32f4xx_hal_conf.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@
103103
#endif /* HSE_VALUE */
104104

105105
#if !defined (HSE_STARTUP_TIMEOUT)
106-
#define HSE_STARTUP_TIMEOUT ((uint32_t)50) /*!< Time out for HSE start up, in ms */
106+
#define HSE_STARTUP_TIMEOUT ((uint32_t)100) /*!< Time out for HSE start up, in ms */
107107
#endif /* HSE_STARTUP_TIMEOUT */
108108

109109
/**
@@ -129,7 +129,7 @@
129129
* frequency, this source is inserted directly through I2S_CKIN pad.
130130
*/
131131
#if !defined (EXTERNAL_CLOCK_VALUE)
132-
#define EXTERNAL_CLOCK_VALUE ((uint32_t)12288000) /*!< Value of the Internal oscillator in Hz*/
132+
#define EXTERNAL_CLOCK_VALUE ((uint32_t)12288000) /*!< Value of the external oscillator in Hz*/
133133
#endif /* EXTERNAL_CLOCK_VALUE */
134134

135135
/* Tip: To avoid modifying this file each time you need to use different HSE,

0 commit comments

Comments
 (0)