Skip to content

Commit 3a59d30

Browse files
committed
Remove timer debug messages
1 parent c58bd4c commit 3a59d30

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

ports/stm/peripherals/timers.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -195,18 +195,14 @@ TIM_TypeDef * stm_peripherals_find_timer(void) {
195195
// If no results are found, no unclaimed pins with this timer are in this package,
196196
// and it is safe to pick
197197
if (timer_in_package == false && mcu_tim_banks[i] != NULL) {
198-
// DEBUG: print the timer
199198
return mcu_tim_banks[i];
200-
mp_printf(&mp_plat_print, "Timer: %d\n",i);
201199
}
202200
}
203201
//TODO: secondary search for timers outside the pins in the board profile
204202

205203
// Work backwards - higher index timers have fewer pin allocations
206204
for (size_t i = (MP_ARRAY_SIZE(mcu_tim_banks) - 1); i >= 0; i--) {
207205
if ((!stm_timer_reserved[i]) && (mcu_tim_banks[i] != NULL)) {
208-
// DEBUG: print the timer
209-
mp_printf(&mp_plat_print, "Timer: %d\n",i);
210206
return mcu_tim_banks[i];
211207
}
212208
}

0 commit comments

Comments
 (0)