altos: Allow devices to override default beep
[fw/altos] / src / kernel / ao_beep.h
index fdc150f1bbb56148b2d126520105913bb134e344..1dbc9456c117d8c03dc6bc400803e1aa1d68c9ea 100644 (file)
@@ -35,7 +35,9 @@
  * frequency = 1/2 (24e6/32) / beep
  */
 
+#ifndef AO_BEEP_MID_DEFAULT
 #define AO_BEEP_MID_DEFAULT    94      /* 3989Hz */
+#endif
 
 #if HAS_BEEP_CONFIG
 #define AO_BEEP_MID    ao_config.mid_beep
@@ -85,7 +87,7 @@ ao_beep(uint8_t beep);
 
 /* Turn on the beeper for the specified time */
 void
-ao_beep_for(uint8_t beep, uint16_t ticks);
+ao_beep_for(uint8_t beep, AO_TICK_TYPE ticks);
 
 /* Initialize the beeper */
 void