diff options
author | Mike Fiore <mfiore@multitech.com> | 2014-10-03 15:09:42 -0500 |
---|---|---|
committer | Mike Fiore <mfiore@multitech.com> | 2014-10-03 15:09:42 -0500 |
commit | f9010f0863063e6836394469edf43e86c98d49fe (patch) | |
tree | b7fde122fbc570786240836cfb057ba76dea84db /io-module/mts_io.h | |
parent | 0f0c9bb72a3be330512e60677c4e3693347bf66b (diff) | |
download | mts-io-f9010f0863063e6836394469edf43e86c98d49fe.tar.gz mts-io-f9010f0863063e6836394469edf43e86c98d49fe.tar.bz2 mts-io-f9010f0863063e6836394469edf43e86c98d49fe.zip |
mts-io: reorganize accessory card attributes, move them into subdirs under mts-io
subdirs named ap1, ap2, etc
create links to subdirs with name of card in port, e.g. gpiob, mfser, eth, etc
if 2 of same type of card, still make links but use gpiob-2, mfser-2, etc
Diffstat (limited to 'io-module/mts_io.h')
-rw-r--r-- | io-module/mts_io.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/io-module/mts_io.h b/io-module/mts_io.h index cc88392..3645e17 100644 --- a/io-module/mts_io.h +++ b/io-module/mts_io.h @@ -107,12 +107,10 @@ enum spi_devices { // 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; + char product_id[32]; bool (*setup)(enum ap port); bool (*teardown)(enum ap port); - int attrs_start; - int attrs_end; - char* (*gpio_pin_name_by_attr_name)(const char* name); + char* (*gpio_pin_name_by_attr_name)(const char* name, int port); }; #endif /* ~__MTS_IO_H */ |