projects
/
fw
/
altos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
altos/chaoskey: Delay ADC reading for 250ms at startup
[fw/altos]
/
src
/
drivers
/
ao_companion.c
diff --git
a/src/drivers/ao_companion.c
b/src/drivers/ao_companion.c
index 7e02939bf7bc0c01bca788bce526da7ee1172115..5f07e8b06cf8827e71e031b215c30a1aedbbc97d 100644
(file)
--- a/
src/drivers/ao_companion.c
+++ b/
src/drivers/ao_companion.c
@@
-23,6
+23,10
@@
#define ao_spi_fast(b)
#endif
#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, \
#define COMPANION_SELECT() do { \
ao_spi_get_bit(AO_COMPANION_CS_PORT, \
AO_COMPANION_CS_PIN, \