summaryrefslogtreecommitdiff
path: root/io-module/mts_io.h
diff options
context:
space:
mode:
Diffstat (limited to 'io-module/mts_io.h')
-rw-r--r--io-module/mts_io.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/io-module/mts_io.h b/io-module/mts_io.h
index b91423e..ac39463 100644
--- a/io-module/mts_io.h
+++ b/io-module/mts_io.h
@@ -102,5 +102,25 @@ enum {
LED_FLASHING,
};
+enum ap {
+ port_1 = 1,
+ port_2,
+};
+
+enum spi_devices {
+ din = 0,
+ dout = 1,
+ adc = 2,
+};
+
+// info for accessory port
+// contains function pointers for setup and teardown and useful info
+// each type of accessory card should have one of these
+struct ap_info {
+ uint8_t product_id;
+ bool (*setup)(enum ap port);
+ bool (*teardown)(enum ap port);
+};
+
#endif /* ~__MTS_IO_H */