stm32f1: buzzer: replace timer_reset() with rcc_periph_reset_pulse()
This commit is contained in:
parent
94de01c874
commit
e3c592a9dc
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue