Skip to content

Commit c87318c

Browse files
author
Richard Unger
committed
add debug to start/stop timers
1 parent 3672172 commit c87318c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/drivers/hardware_specific/stm32_mcu.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,9 @@ void _startTimers(HardwareTimer **timers_to_start, int timer_num)
167167
for (int i=0; i < timer_num; i++) {
168168
if(timers_to_start[i] == NP) return;
169169
timers_to_start[i]->resume();
170+
#ifdef SIMPLEFOC_STM32_DEBUG
171+
SIMPLEFOC_DEBUG("STM32-DRV: Starting timer ", getTimerNumber(get_timer_index(timers_to_start[i]->getHandle()->Instance)));
172+
#endif
170173
}
171174
}
172175

0 commit comments

Comments
 (0)