summaryrefslogtreecommitdiff
path: root/io-module/mts_eeprom.h
diff options
context:
space:
mode:
authorMykyta Dorokhin <mykyta.dorokhin@globallogic.com>2016-11-02 14:24:54 +0200
committerMykyta Dorokhin <mykyta.dorokhin@globallogic.com>2016-11-02 14:24:54 +0200
commitdee8c0d10541e1ce1926356996738063889d5fc2 (patch)
tree3ce4d8e546bf00a2517a69725fbf7c1c81b44a32 /io-module/mts_eeprom.h
parent4b5fa3b77d46aedd106312f9f14fddb1483fb0ef (diff)
downloadmts-io-dee8c0d10541e1ce1926356996738063889d5fc2.tar.gz
mts-io-dee8c0d10541e1ce1926356996738063889d5fc2.tar.bz2
mts-io-dee8c0d10541e1ce1926356996738063889d5fc2.zip
feat: add lora-capa, lora-product-id and lora-hw-version to eeprom (for on-board lora peripheral)
Diffstat (limited to 'io-module/mts_eeprom.h')
-rw-r--r--io-module/mts_eeprom.h13
1 files changed, 8 insertions, 5 deletions
diff --git a/io-module/mts_eeprom.h b/io-module/mts_eeprom.h
index 6697fd5..89f2439 100644
--- a/io-module/mts_eeprom.h
+++ b/io-module/mts_eeprom.h
@@ -22,7 +22,9 @@ struct mts_id_eeprom_layout {
uint8_t mac_wifi[6];
uint8_t uuid[16];
uint8_t lora_eui[8];
- uint8_t reserved[278];
+ char lora_product_id[32];
+ char lora_hw_version[32];
+ uint8_t reserved[214];
};
/* accessory card EEPROM */
@@ -58,8 +60,9 @@ do { \
#define CAPA_DOUT DEVICE_CAPA_VALUE(0, 5)
#define CAPA_ADC DEVICE_CAPA_VALUE(0, 4)
-#define CAPA_BLUETOOTH DEVICE_CAPA_VALUE(1, 7)
-#define CAPA_WIFI DEVICE_CAPA_VALUE(1, 6)
-#define CAPA_WIFI_BT DEVICE_CAPA_VALUE(1, 5) // Redpine rs9113
-#define CAPA_GNSS DEVICE_CAPA_VALUE(1, 4) // ublox EVA 7M
+#define CAPA_BLUETOOTH DEVICE_CAPA_VALUE(1, 7)
+#define CAPA_WIFI DEVICE_CAPA_VALUE(1, 6)
+#define CAPA_WIFI_BT DEVICE_CAPA_VALUE(1, 5) // Redpine rs9113
+#define CAPA_GNSS DEVICE_CAPA_VALUE(1, 4) // ublox EVA 7M
+#define CAPA_LORA DEVICE_CAPA_VALUE(1, 3) // on-board lora
#endif