From dee8c0d10541e1ce1926356996738063889d5fc2 Mon Sep 17 00:00:00 2001 From: Mykyta Dorokhin Date: Wed, 2 Nov 2016 14:24:54 +0200 Subject: feat: add lora-capa, lora-product-id and lora-hw-version to eeprom (for on-board lora peripheral) --- io-module/mts_eeprom.h | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'io-module/mts_eeprom.h') 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 -- cgit v1.2.3