We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 72f03ad + 093c7b9 commit 96b338dCopy full SHA for 96b338d
hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/TARGET_BLUEPILL_F103C8/hal_tick.c
@@ -138,6 +138,19 @@ HAL_StatusTypeDef HAL_InitTick(uint32_t TickPriority) {
138
return HAL_OK;
139
}
140
141
+void HAL_SuspendTick(void) {
142
+ TimMasterHandle.Instance = TIM_MST;
143
+
144
+ // Disable HAL tick and us_ticker update interrupts (used for 32 bit counter)
145
+ __HAL_TIM_DISABLE_IT(&TimMasterHandle, (TIM_IT_CC2 | TIM_IT_UPDATE));
146
+}
147
148
+void HAL_ResumeTick(void) {
149
150
151
+ // Enable HAL tick and us_ticker update interrupts (used for 32 bit counter)
152
+ __HAL_TIM_ENABLE_IT(&TimMasterHandle, (TIM_IT_CC2 | TIM_IT_UPDATE));
153
154
/**
155
* @}
156
*/
0 commit comments