-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
30 changed files
with
1,176 additions
and
334 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule candle
updated
30 files
+11 −5 | CMakeLists.txt | |
+5 −1 | README.md | |
+3 −1 | examples_cpp/example10.cpp | |
+3 −1 | examples_cpp/example11.cpp | |
+31 −0 | examples_cpp/example12.cpp | |
+0 −1 | examples_cpp/example6.cpp | |
+1 −1 | examples_cpp/example7.cpp | |
+1 −1 | examples_cpp/example8.cpp | |
+4 −4 | examples_cpp/example9.cpp | |
+3 −1 | examples_python/example10.py | |
+3 −1 | examples_python/example11.py | |
+1 −1 | examples_python/example7.py | |
+2 −2 | examples_python/example9.py | |
+20 −24 | include/bus.hpp | |
+128 −72 | include/candle.hpp | |
+25 −0 | include/mab_types.hpp | |
+18 −3 | include/md80.hpp | |
+213 −0 | include/register.hpp | |
+13 −13 | include/spiDevice.hpp | |
+12 −14 | include/uartDevice.hpp | |
+12 −13 | include/usbDevice.hpp | |
+20 −106 | src/bus.cpp | |
+289 −243 | src/candle.cpp | |
+5 −0 | src/md80.cpp | |
+152 −0 | src/register.cpp | |
+39 −42 | src/spiDevice.cpp | |
+46 −46 | src/uartDevice.cpp | |
+81 −35 | src/usbDevice.cpp | |
+23 −0 | test/CMakeLists.txt | |
+63 −0 | test/test.cpp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
37 changes: 0 additions & 37 deletions
37
package/mdtool_1.1-0_aarm64/etc/bash_completion.d/mdtool_completion.sh
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
37 changes: 0 additions & 37 deletions
37
package/mdtool_1.1-0_amd64/etc/bash_completion.d/mdtool_completion.sh
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
37 changes: 0 additions & 37 deletions
37
package/mdtool_1.1-0_armhf/etc/bash_completion.d/mdtool_completion.sh
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#!/usr/bin/env bash | ||
TARGETS="amd64 arm64 armhf" | ||
rm -rf build | ||
mkdir -p build | ||
cd build | ||
|
||
apt install gcc-arm-linux-gnueabi g++-arm-linux-gnueabi | ||
apt install gcc-arm-linux-gnueabihf g++-arm-linux-gnueabihf | ||
apt install g++-aarch64-linux-gnu | ||
|
||
mkdir packages | ||
|
||
for TARGET in ${TARGETS} | ||
do | ||
# create one build dir per target architecture | ||
mkdir -p ${TARGET} | ||
cd ${TARGET} | ||
cmake -DARCH=${TARGET} ../.. | ||
make -j | ||
cpack -G DEB | ||
cp *.deb ../packages | ||
cd - | ||
done | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,20 @@ | ||
#include "mainWorker.hpp" | ||
#include "ui.hpp" | ||
|
||
const std::string version = "v1.1"; | ||
|
||
int main(int argc, char** argv) | ||
{ | ||
std::cout << "[MDTOOL] MDtool version: " << version << std::endl; | ||
std::vector<std::string> args; | ||
for (int i = 0; i < argc; i++) | ||
args.emplace_back(argv[i]); | ||
std::cout << "[MDTOOL] MDtool version: v" << version << std::endl; | ||
std::vector<std::string> args; | ||
for (int i = 0; i < argc; i++) | ||
args.emplace_back(argv[i]); | ||
|
||
if (args.size() < 2) | ||
{ | ||
ui::printTooFewArgs(); | ||
return 2; | ||
} | ||
if (args.size() < 2) | ||
{ | ||
ui::printTooFewArgs(); | ||
return 2; | ||
} | ||
|
||
MainWorker program(args); | ||
MainWorker program(args); | ||
|
||
return EXIT_SUCCESS; | ||
return EXIT_SUCCESS; | ||
} |
Oops, something went wrong.