summaryrefslogtreecommitdiff
path: root/src/core/ao.h
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2011-11-12 18:49:17 -0800
committerKeith Packard <keithp@keithp.com>2011-11-12 18:49:17 -0800
commit75a8490a7bee2a2c7afd559b13f1d9c40c2aa08f (patch)
treea7ec901ea870f8b5ea55a595d41e5317ffd02f12 /src/core/ao.h
parent2ba946fea29ff134ffaeaea9d7932f4bd4e953aa (diff)
altos: Add configurable set of channels for TT
This adds the channel list for TT, which will be configured by AltosUI. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/core/ao.h')
-rw-r--r--src/core/ao.h17
1 files changed, 16 insertions, 1 deletions
diff --git a/src/core/ao.h b/src/core/ao.h
index 2139983c..3c1aa156 100644
--- a/src/core/ao.h
+++ b/src/core/ao.h
@@ -1495,9 +1495,21 @@ ao_igniter_init(void);
*/
#define AO_CONFIG_MAJOR 1
-#define AO_CONFIG_MINOR 9
+#define AO_CONFIG_MINOR 10
#define AO_AES_LEN 16
+#if HAS_RADIO_CHANNELS
+#define AO_CHANNEL_NAME_LEN 10
+
+#define AO_NUM_CHANNELS 10
+
+struct ao_radio_channel {
+ char name[AO_CHANNEL_NAME_LEN];
+ uint32_t kHz;
+ uint32_t radio_setting;
+};
+#endif
+
struct ao_config {
uint8_t major;
uint8_t minor;
@@ -1514,6 +1526,9 @@ struct ao_config {
uint32_t radio_setting; /* minor version 7 */
uint8_t radio_enable; /* minor version 8 */
uint8_t aes_key[AO_AES_LEN]; /* minor version 9 */
+#if HAS_RADIO_CHANNELS
+ struct ao_radio_channel radio_channels[AO_NUM_CHANNELS]; /* minor version 10 */
+#endif
};
#define AO_IGNITE_MODE_DUAL 0