altos/telemega-v5.0: Space tones closer together
authorKeith Packard <keithp@keithp.com>
Sun, 19 Sep 2021 23:30:08 +0000 (16:30 -0700)
committerKeith Packard <keithp@keithp.com>
Sun, 19 Sep 2021 23:31:14 +0000 (16:31 -0700)
TeleMega beeper needs tones fairly closely spaced to
keep them in range.

Signed-off-by: Keith Packard <keithp@keithp.com>
src/telemega-v5.0/ao_pins.h

index 2f70f27b1c09baba93148d8845fc925aa8c02211..07b3daa857268ea3eea99201e8986dd8d243715b 100644 (file)
@@ -83,7 +83,9 @@
 #define BEEPER_CHANNEL         2
 #define BEEPER_PORT            (&stm_gpioe)
 #define BEEPER_PIN             4
 #define BEEPER_CHANNEL         2
 #define BEEPER_PORT            (&stm_gpioe)
 #define BEEPER_PIN             4
-#define AO_BEEP_MID_DEFAULT    179     /* 2100 Hz */
+#define AO_BEEP_MID_DEFAULT    179             /* 2100 Hz */
+#define AO_BEEP_MAKE_LOW(m)    ((m) * 197/179) /* 1900 Hz */
+#define AO_BEEP_MAKE_HIGH(m)   ((m) * 163/179) /* 2300 Hz */
 #define HAS_BATTERY_REPORT     1
 #define HAS_RADIO              1
 #define HAS_TELEMETRY          1
 #define HAS_BATTERY_REPORT     1
 #define HAS_RADIO              1
 #define HAS_TELEMETRY          1