summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Reiss <jreiss@multitech.com>2016-10-13 15:22:10 -0500
committerJason Reiss <jreiss@multitech.com>2016-10-13 15:22:10 -0500
commitc45f59cbbdb6bd0642be786af6d335691ece9e3b (patch)
tree96dc50b77a0b267b29c52ab604c5fc7d09c18c7d
parent88ad5fef1497e10691ed663b9afb41df729f1b49 (diff)
downloadmts-io-c45f59cbbdb6bd0642be786af6d335691ece9e3b.tar.gz
mts-io-c45f59cbbdb6bd0642be786af6d335691ece9e3b.tar.bz2
mts-io-c45f59cbbdb6bd0642be786af6d335691ece9e3b.zip
mtac_lora: add version 1.1 for MTAC_LORA 1.0 with USB removed to be SPI card
-rw-r--r--io-module/mtac_lora.c1
-rw-r--r--io-module/mts_io.h2
2 files changed, 3 insertions, 0 deletions
diff --git a/io-module/mtac_lora.c b/io-module/mtac_lora.c
index a0907c8..a822ece 100644
--- a/io-module/mtac_lora.c
+++ b/io-module/mtac_lora.c
@@ -100,6 +100,7 @@ static bool lora_setup(enum ap port) {
if COMPARE_AND_ASSIGN(MTAC_LORA_0_0)
else if COMPARE_AND_ASSIGN(MTAC_LORA_1_0)
+ else if COMPARE_AND_ASSIGN(MTAC_LORA_1_1)
else if COMPARE_AND_ASSIGN(MTAC_LORA_1_5)
else {
log_error("Unknown hw-version in port %d", port);
diff --git a/io-module/mts_io.h b/io-module/mts_io.h
index ee3a5a1..e16fa88 100644
--- a/io-module/mts_io.h
+++ b/io-module/mts_io.h
@@ -56,6 +56,7 @@ struct device_attribute _dev_name = { \
#define HW_VERSION_MTAC_LORA_0_0 "MTAC-LORA-0.0"
/* MTAC-LORA2 with FTDI FT232H */
#define HW_VERSION_MTAC_LORA_1_0 "MTAC-LORA-1.0"
+#define HW_VERSION_MTAC_LORA_1_0 "MTAC-LORA-1.1"
#define HW_VERSION_MTAC_LORA_1_5 "MTAC-LORA-1.5"
#define HW_VERSION_MTCBA2_2_0 "MTCBA2-2.0"
@@ -86,6 +87,7 @@ enum {
MTAC_ETH_0_0,
MTAC_LORA_0_0,
MTAC_LORA_1_0,
+ MTAC_LORA_1_1,
MTAC_LORA_1_5,
};