From c0380040166366a290c5e44a977a8acb6e3120ab Mon Sep 17 00:00:00 2001 From: John Klug Date: Thu, 25 Oct 2018 15:33:23 -0500 Subject: Add mtac_free function to mtac module --- mtac.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'mtac.h') diff --git a/mtac.h b/mtac.h index 1faa104..03e6cd0 100644 --- a/mtac.h +++ b/mtac.h @@ -23,9 +23,6 @@ #define PRODUCT_ID_MTAC_PULSE "MTAC-PULSE" #define PRODUCT_ID_MTAC_XDOT "MTAC-XDOT" - -#define DEBUG 1 - /* Hardware version must be fewer characters than hw_version in struct mts_ap_eeprom_layout */ /* MTAC-LORA with native SPI or FTDI FT4222 */ @@ -48,7 +45,7 @@ enum { MTAC_LORA_1_0, MTAC_LORA_1_1, MTAC_LORA_1_5, - MTAC_PULSE_1_0, + MTAC_PULSE_1_0, MTAC_XDOT_0_0, }; @@ -92,4 +89,5 @@ extern struct gpio_pin *mtac_gpio_pin_by_name(const char *name, int port_index); extern void mtac_clear_port_pins(int port_index); extern int mtac_find(void(*set_info)(struct ap_info* info), const char *target_product_id); extern struct ap_info *mtac_port_info[]; +extern void mtac_free(const char * product_id, bool (* setup)(enum ap port), const char *link); #endif /* IO_MODULE_MTAC_H_ */ -- cgit v1.2.3