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.
1 parent 6b8ff8f commit 8c785e5Copy full SHA for 8c785e5
hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/TARGET_BLUEPILL_F103C8/hal_tick.c
@@ -138,6 +138,21 @@ HAL_StatusTypeDef HAL_InitTick(uint32_t TickPriority) {
138
return HAL_OK;
139
}
140
141
+void HAL_SuspendTick(void)
142
+{
143
+ TimMasterHandle.Instance = TIM_MST;
144
+
145
+ // Disable HAL tick and us_ticker update interrupts (used for 32 bit counter)
146
+ __HAL_TIM_DISABLE_IT(&TimMasterHandle, (TIM_IT_CC2 | TIM_IT_UPDATE));
147
+}
148
149
+void HAL_ResumeTick(void)
150
151
152
153
+ // Enable HAL tick and us_ticker update interrupts (used for 32 bit counter)
154
+ __HAL_TIM_ENABLE_IT(&TimMasterHandle, (TIM_IT_CC2 | TIM_IT_UPDATE));
155
156
/**
157
* @}
158
*/
0 commit comments