summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorHarsh Sharma <harsh.sharma@multitech.com>2022-03-16 12:35:57 -0500
committerHarsh Sharma <harsh.sharma@multitech.com>2022-03-16 12:35:57 -0500
commit807db81bdd99812bbdbbf05aefd42901628d4cf3 (patch)
treefc1c3ba6845f984717319aed8516a9e90ed6a4b0 /include
parentc3a72c83d08899aca324004b888f471688e7116b (diff)
downloadmts-io-sysfs-807db81bdd99812bbdbbf05aefd42901628d4cf3.tar.gz
mts-io-sysfs-807db81bdd99812bbdbbf05aefd42901628d4cf3.tar.bz2
mts-io-sysfs-807db81bdd99812bbdbbf05aefd42901628d4cf3.zip
Fixed fpga loader
Diffstat (limited to 'include')
-rw-r--r--include/Fpga/Fpga.h1
-rw-r--r--include/General.h4
-rw-r--r--include/Utility/Utility.h2
3 files changed, 6 insertions, 1 deletions
diff --git a/include/Fpga/Fpga.h b/include/Fpga/Fpga.h
index 986a269..3ed672a 100644
--- a/include/Fpga/Fpga.h
+++ b/include/Fpga/Fpga.h
@@ -68,6 +68,7 @@ class Mtac15Fpga {
Mtac15Fpga(std::string path);
int getFpgaVersion();
int FpgaVersion();
+ void printFpgaVersion();
int upgradeFpga();
};
diff --git a/include/General.h b/include/General.h
index e45f06a..861ec62 100644
--- a/include/General.h
+++ b/include/General.h
@@ -58,6 +58,10 @@ typedef unsigned int uint; // 32 bit - even on 64 bit machines
#define FIRMWARE_FILE "/etc/issue"
#define CRESET "/creset"
+#define LORA_1_5_MTCAP_SPI "/dev/spidev0.0"
+#define LORA_1_5_MTCDT_SPI_AP_1 "/dev/spidev0.2"
+#define LORA_1_5_MTCDT_SPI_AP_2 "/dev/spidev1.2"
+
#define LORA_2_1_FPGA_VERSION \
"mts-fpga-loader -g | grep version | awk '{printf $4}'"
#define LORA_2_1_EXT_FPGA_VERSION \
diff --git a/include/Utility/Utility.h b/include/Utility/Utility.h
index caf5661..a04d826 100644
--- a/include/Utility/Utility.h
+++ b/include/Utility/Utility.h
@@ -44,7 +44,7 @@ inline std::string toCamelCase(const char *d_name) {
inline void exitHandler(int code) {
if (code != 0) {
- std::cout << "exiting with " << std::to_string(code);
+ std::cout << "exiting with " << std::to_string(code) <<std::endl;
}
exit(code);
}