summaryrefslogtreecommitdiff
path: root/src/kernel/ao.h
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2014-05-02 12:26:07 -0700
committerKeith Packard <keithp@keithp.com>2014-05-02 13:52:45 -0700
commit027b1470c7a2d007eaab5c8d49f772b0c7559b80 (patch)
tree07f9711d5625a603b82aad080fc0283a7e4ffad0 /src/kernel/ao.h
parent8e3842660274ac4bcd7b5a78f5db215222b1c4de (diff)
altos: Add configurable beep tone
This lets you directly set the mid-range beep tone; the high and low tones remain set off of that in the same ratio as before. Note that none of the cc1111 products get this feature as they don't have enough flash space anymore... Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/kernel/ao.h')
-rw-r--r--src/kernel/ao.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/kernel/ao.h b/src/kernel/ao.h
index 29ad2603..9169bd84 100644
--- a/src/kernel/ao.h
+++ b/src/kernel/ao.h
@@ -750,7 +750,7 @@ extern __xdata uint8_t ao_force_freq;
#endif
#define AO_CONFIG_MAJOR 1
-#define AO_CONFIG_MINOR 15
+#define AO_CONFIG_MINOR 16
#define AO_AES_LEN 16
@@ -789,6 +789,9 @@ struct ao_config {
int16_t accel_zero_across; /* minor version 15 */
int16_t accel_zero_through; /* minor version 15 */
#endif
+#if HAS_BEEP
+ uint8_t mid_beep; /* minor version 16 */
+#endif
};
#define AO_IGNITE_MODE_DUAL 0