projects
/
fw
/
altos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
altos/stm32f4: Add more stm32f413 definitions and support code
[fw/altos]
/
src
/
kernel
/
ao_beep.h
diff --git
a/src/kernel/ao_beep.h
b/src/kernel/ao_beep.h
index 085dd5b12f42d27ff27745eb6adf4c4ba81bcad2..fdc150f1bbb56148b2d126520105913bb134e344 100644
(file)
--- a/
src/kernel/ao_beep.h
+++ b/
src/kernel/ao_beep.h
@@
-42,9
+42,15
@@
#else
#define AO_BEEP_MID AO_BEEP_MID_DEFAULT
#endif
#else
#define AO_BEEP_MID AO_BEEP_MID_DEFAULT
#endif
+
+#define AO_BEEP_MID_PANIC AO_BEEP_MID_DEFAULT
+
#define AO_BEEP_LOW AO_BEEP_MID * 150 / 94 /* 2500Hz */
#define AO_BEEP_HIGH AO_BEEP_MID * 75 / 94 /* 5000Hz */
#define AO_BEEP_LOW AO_BEEP_MID * 150 / 94 /* 2500Hz */
#define AO_BEEP_HIGH AO_BEEP_MID * 75 / 94 /* 5000Hz */
+#define AO_BEEP_LOW_PANIC (AO_BEEP_MID_PANIC * 150 / 94)
+#define AO_BEEP_HIGH_PANIC (AO_BEEP_MID_PANIC * 75 / 94)
+
#define AO_BEEP_OFF 0 /* off */
#define AO_BEEP_g 240 /* 1562.5Hz */
#define AO_BEEP_OFF 0 /* off */
#define AO_BEEP_g 240 /* 1562.5Hz */
@@
-79,7
+85,7
@@
ao_beep(uint8_t beep);
/* Turn on the beeper for the specified time */
void
/* Turn on the beeper for the specified time */
void
-ao_beep_for(uint8_t beep, uint16_t ticks)
__reentrant
;
+ao_beep_for(uint8_t beep, uint16_t ticks);
/* Initialize the beeper */
void
/* Initialize the beeper */
void