File tree Expand file tree Collapse file tree 4 files changed +0
-15
lines changed
TARGET_STM32F429xI/device
TARGET_STM32F437xG/device Expand file tree Collapse file tree 4 files changed +0
-15
lines changed Original file line number Diff line number Diff line change 57
57
58
58
#define HAL_TICK_DELAY (1000) // 1 ms
59
59
60
- void HAL_SuspendTick (void );
61
-
62
60
#ifdef __cplusplus
63
61
}
64
62
#endif
Original file line number Diff line number Diff line change 57
57
58
58
#define HAL_TICK_DELAY (1000) // 1 ms
59
59
60
- void HAL_SuspendTick (void );
61
-
62
60
#ifdef __cplusplus
63
61
}
64
62
#endif
File renamed without changes.
Original file line number Diff line number Diff line change 35
35
#include "mbed_critical.h"
36
36
#include "mbed_error.h"
37
37
38
- extern void HAL_SuspendTick (void );
39
- extern void HAL_ResumeTick (void );
40
38
extern void rtc_synchronize (void );
41
39
42
40
/* Wait loop - assuming tick is 1 us */
@@ -139,12 +137,8 @@ void hal_sleep(void)
139
137
// Disable IRQs
140
138
core_util_critical_section_enter ();
141
139
142
- // Stop HAL tick to avoid to exit sleep in 1ms
143
- HAL_SuspendTick ();
144
140
// Request to enter SLEEP mode
145
141
HAL_PWR_EnterSLEEPMode (PWR_MAINREGULATOR_ON , PWR_SLEEPENTRY_WFI );
146
- // Restart HAL tick
147
- HAL_ResumeTick ();
148
142
149
143
// Enable IRQs
150
144
core_util_critical_section_exit ();
@@ -155,8 +149,6 @@ void hal_deepsleep(void)
155
149
// Disable IRQs
156
150
core_util_critical_section_enter ();
157
151
158
- // Stop HAL tick
159
- HAL_SuspendTick ();
160
152
uint32_t EnterTimeUS = us_ticker_read ();
161
153
162
154
// Request to enter STOP mode with regulator in low power mode
@@ -185,9 +177,6 @@ void hal_deepsleep(void)
185
177
// Verify Clock Out of Deep Sleep
186
178
ForceClockOutofDeepSleep ();
187
179
188
- // Restart HAL tick
189
- HAL_ResumeTick ();
190
-
191
180
// After wake-up from STOP reconfigure the PLL
192
181
SetSysClock ();
193
182
You can’t perform that action at this time.
0 commit comments