summaryrefslogtreecommitdiff
path: root/src/drivers/ao_companion.c
diff options
context:
space:
mode:
authorBdale Garbee <bdale@gag.com>2015-09-29 00:46:42 -0600
committerBdale Garbee <bdale@gag.com>2015-09-29 00:46:42 -0600
commit7064bc685aebeef07711e525dea4d5fbe33d235b (patch)
tree90b7c046fef47ecd2c68c1acafa042871435e24e /src/drivers/ao_companion.c
parentea1d24151cf76ae8f2368673317b66958e2508c4 (diff)
parentdda3f459eaff8d4e41cb44584c8ef77b8e2b3b1c (diff)
Merge branch 'master' of ssh://git.gag.com/scm/git/fw/altos
Diffstat (limited to 'src/drivers/ao_companion.c')
-rw-r--r--src/drivers/ao_companion.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/drivers/ao_companion.c b/src/drivers/ao_companion.c
index 7e02939b..5f07e8b0 100644
--- a/src/drivers/ao_companion.c
+++ b/src/drivers/ao_companion.c
@@ -23,6 +23,10 @@
#define ao_spi_fast(b)
#endif
+#if !HAS_COMPANION
+#error HAS_COMPANION not set in ao_companion.c
+#endif
+
#define COMPANION_SELECT() do { \
ao_spi_get_bit(AO_COMPANION_CS_PORT, \
AO_COMPANION_CS_PIN, \