diff options
| author | Keith Packard <keithp@keithp.com> | 2018-03-16 14:53:14 -0700 |
|---|---|---|
| committer | Keith Packard <keithp@keithp.com> | 2018-03-16 14:53:14 -0700 |
| commit | 4894d965d73231b5c74810d826c7c97fa1bd7803 (patch) | |
| tree | bae983c8d116b1e54033c20d1bb2ab38a44748e1 /src/kernel/ao_beep.h | |
| parent | 1ea6188a9c78ab0642001110cac6c3b35e8ccc88 (diff) | |
altos: Make panic beeps use fixed frequencies
This ensures that the beeps will work even before the configuration
has been loaded.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/kernel/ao_beep.h')
| -rw-r--r-- | src/kernel/ao_beep.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/kernel/ao_beep.h b/src/kernel/ao_beep.h index 085dd5b1..1306af62 100644 --- 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 + +#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_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 */ |
