aboutsummaryrefslogtreecommitdiff
path: root/spaghetti-monster/chan-aux.h
diff options
context:
space:
mode:
authorSelene ToyKeeper2023-07-18 14:44:40 -0600
committerSelene ToyKeeper2023-07-18 14:44:40 -0600
commit6c7c99b1be9a684e3a6ccc533f46979b39f7a529 (patch)
treebe94359c376f25939b5b71627e002b3d11e765bb /spaghetti-monster/chan-aux.h
parentlowercase'd sofirn-lt1s-pro files (diff)
downloadanduril-6c7c99b1be9a684e3a6ccc533f46979b39f7a529.tar.gz
anduril-6c7c99b1be9a684e3a6ccc533f46979b39f7a529.tar.bz2
anduril-6c7c99b1be9a684e3a6ccc533f46979b39f7a529.zip
converted Emisar D4 and BLF Q8 to multi-channel,
and enabled previously-removed tactical mode on the Q8 since there seems to be enough space now (also lowercased their hwdef files)
Diffstat (limited to 'spaghetti-monster/chan-aux.h')
-rw-r--r--spaghetti-monster/chan-aux.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/spaghetti-monster/chan-aux.h b/spaghetti-monster/chan-aux.h
index c8264bd..ff599b8 100644
--- a/spaghetti-monster/chan-aux.h
+++ b/spaghetti-monster/chan-aux.h
@@ -3,6 +3,22 @@
// SPDX-License-Identifier: GPL-3.0-or-later
#pragma once
+#define NUM_AUX_CHANNEL_MODES 1
+
+// include / exclude field based on compile options
+#ifdef USE_CHANNEL_MODE_ARGS
+ #define AUX_HAS_ARGS , .has_args = 0
+#else
+ #define AUX_HAS_ARGS
+#endif
+
+#define AUX_CHANNELS \
+ { \
+ .set_level = set_level_aux, \
+ .gradual_tick = gradual_tick_null \
+ AUX_HAS_ARGS \
+ }
+
void set_level_aux(uint8_t level);
bool gradual_tick_null(uint8_t gt);