File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed
cmsis/TARGET_STM/TARGET_NUCLEO_F401RE
hal/TARGET_STM/TARGET_NUCLEO_F401RE Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 126
126
*/
127
127
128
128
/* [ADDED FOR MBED] */
129
- static void SystemClock_Config (void );
129
+ void SystemClock_Config (void );
130
130
131
131
/**
132
132
* @}
@@ -266,7 +266,7 @@ void SystemCoreClockUpdate(void)
266
266
267
267
/* [ADDED FOR MBED]
268
268
Configure the System clock to 84 MHz (max value) using the internal HSI 16 MHz clock */
269
- static void SystemClock_Config (void )
269
+ void SystemClock_Config (void )
270
270
{
271
271
RCC_ClkInitTypeDef RCC_ClkInitStruct ;
272
272
RCC_OscInitTypeDef RCC_OscInitStruct ;
Original file line number Diff line number Diff line change 31
31
#include "cmsis.h"
32
32
#include "stm32f4xx_hal.h"
33
33
34
+ // This function is in the system_stm32f4xx.c file
35
+ extern void SystemClock_Config (void );
36
+
34
37
static TIM_HandleTypeDef TimMasterHandle ;
35
38
36
39
void sleep (void )
@@ -43,4 +46,6 @@ void deepsleep(void)
43
46
{
44
47
// Request to enter STOP mode with regulator in low power mode
45
48
HAL_PWR_EnterSTOPMode (PWR_LOWPOWERREGULATOR_ON , PWR_STOPENTRY_WFI );
49
+ // After wake-up from STOP reconfigure the PLL
50
+ SystemClock_Config ();
46
51
}
You can’t perform that action at this time.
0 commit comments