X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2Fstmf0%2Fao_beep_stm.c;h=39022da16d4fd36e48300c0573ee8894af7b04ec;hb=2d4484e1577edc66c52bcb260329387f93123a6d;hp=abcc116c706c2335f86ce5c174fcf63076d1bdef;hpb=c6e57291d91f1f6c4de5c54a5cfd3eef66d9f830;p=fw%2Faltos diff --git a/src/stmf0/ao_beep_stm.c b/src/stmf0/ao_beep_stm.c index abcc116c..39022da1 100644 --- a/src/stmf0/ao_beep_stm.c +++ b/src/stmf0/ao_beep_stm.c @@ -376,7 +376,7 @@ ao_beep(uint8_t beep) } void -ao_beep_for(uint8_t beep, uint16_t ticks) +ao_beep_for(uint8_t beep, AO_TICK_TYPE ticks) { ao_beep(beep); ao_delay(ticks); @@ -386,7 +386,7 @@ ao_beep_for(uint8_t beep, uint16_t ticks) void ao_beep_init(void) { - ao_enable_output(BEEPER_PORT, BEEPER_PIN, BEEPER, 0); + ao_enable_output(BEEPER_PORT, BEEPER_PIN, 0); /* Leave the timer off until requested */ stm_rcc_enr &= ~(1 << STM_RCC_TIMER);