stm32f1: buzzer: replace timer_reset() with rcc_periph_reset_pulse()

master
S.J.R. van Schaik 6 years ago
parent 94de01c874
commit e3c592a9dc
  1. 2
      source/platform/stm32f1/buzzer.c

@ -13,7 +13,7 @@ size_t nbuzzers = count_of(buzzers);
void buzzer_init(struct buzzer *buzzer)
{
timer_reset(buzzer->timer);
rcc_periph_reset_pulse(buzzer->timer);
timer_set_mode(buzzer->timer, TIM_CR1_CKD_CK_INT, TIM_CR1_CMS_EDGE,
TIM_CR1_DIR_UP);

Loading…
Cancel
Save