From f9010f0863063e6836394469edf43e86c98d49fe Mon Sep 17 00:00:00 2001 From: Mike Fiore Date: Fri, 3 Oct 2014 15:09:42 -0500 Subject: 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 --- io-module/mts_io.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'io-module/mts_io.h') 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 */ -- cgit v1.2.3