File tree Expand file tree Collapse file tree 1 file changed +3
-9
lines changed
src/drivers/hardware_specific/stm32 Expand file tree Collapse file tree 1 file changed +3
-9
lines changed Original file line number Diff line number Diff line change @@ -206,7 +206,7 @@ void _stopTimers(HardwareTimer **timers_to_stop, int timer_num)
206
206
207
207
// function finds the appropriate timer source trigger for the master timer index provided
208
208
// returns -1 if no trigger source is found
209
- // currently supports the master timers to be from TIM1 to TIM8
209
+ // currently supports the master timers to be from TIM1 to TIM4 and TIM8
210
210
int _getTriggerSourceRegister (HardwareTimer* timer) {
211
211
#if defined(TIM1) && defined(LL_TIM_TS_ITR0)
212
212
if (timer->getHandle ()->Instance == TIM1) return LL_TIM_TS_ITR0;// return TIM_TS_ITR0;
@@ -223,14 +223,8 @@ int _getTriggerSourceRegister(HardwareTimer* timer) {
223
223
#if defined(TIM5) && defined(LL_TIM_TS_ITR4)
224
224
if (timer->getHandle ()->Instance == TIM5) return LL_TIM_TS_ITR4;// return TIM_TS_ITR4;
225
225
#endif
226
- #if defined(TIM6) && defined(LL_TIM_TS_ITR5)
227
- if (timer->getHandle ()->Instance == TIM6) return LL_TIM_TS_ITR5;// return TIM_TS_ITR5;
228
- #endif
229
- #if defined(TIM7) && defined(LL_TIM_TS_ITR6)
230
- if (timer->getHandle ()->Instance == TIM7) return LL_TIM_TS_ITR6;// return TIM_TS_ITR6;
231
- #endif
232
- #if defined(TIM8) && defined(LL_TIM_TS_ITR7)
233
- if (timer->getHandle ()->Instance == TIM8) return LL_TIM_TS_ITR7;// return TIM_TS_ITR7;
226
+ #if defined(TIM8) && defined(LL_TIM_TS_ITR5)
227
+ if (timer->getHandle ()->Instance == TIM8) return LL_TIM_TS_ITR5;// return TIM_TS_ITR5;
234
228
#endif
235
229
return -1 ;
236
230
}
You can’t perform that action at this time.
0 commit comments