diff --git a/.gitmodules b/.gitmodules index 4ef34d6..529a938 100644 --- a/.gitmodules +++ b/.gitmodules @@ -7,3 +7,6 @@ [submodule "va108xx-hal-rs"] path = va108xx-hal-rs url = https://github.com/robamu-org/va108xx-hal-rs.git +[submodule "adt75-rs"] + path = adt75-rs + url = https://egit.irs.uni-stuttgart.de/rust/adt75-rs.git diff --git a/.vscode/launch.json b/.vscode/launch.json index 522b78b..531953f 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -102,5 +102,19 @@ "interface": "jtag", "runToMain": true, }, + { + "type": "cortex-debug", + "request": "launch", + "name": "Debug I2C / Temperature Sensor", + "servertype": "jlink", + "gdbPath": "/usr/bin/gdb-multiarch", + "cwd": "${workspaceRoot}", + "device": "VA10820", + "svdFile": "./va108xx-rs/svd/va108xx-base.svd.patched", + "preLaunchTask": "rust: cargo build temp sensor", + "executable": "${workspaceFolder}/target/thumbv6m-none-eabi/debug/examples/temp-sensor", + "interface": "jtag", + "runToMain": true, + }, ] } \ No newline at end of file diff --git a/.vscode/tasks.json b/.vscode/tasks.json index 979a1a4..3f79530 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -102,5 +102,17 @@ "isDefault": true } }, + { + "label": "rust: cargo build temp sensor", + "type": "shell", + "command": "~/.cargo/bin/cargo", // note: full path to the cargo + "args": [ + "build", "-p", "vorago-reb1", "--example", "temp-sensor", + ], + "group": { + "kind": "build", + "isDefault": true + } + }, ] } \ No newline at end of file diff --git a/adt75-rs b/adt75-rs new file mode 160000 index 0000000..8b7121e --- /dev/null +++ b/adt75-rs @@ -0,0 +1 @@ +Subproject commit 8b7121eb4771c2537c6123f632d20fbfb2ba3657 diff --git a/docs/ADT75.pdf b/docs/ADT75.pdf new file mode 100644 index 0000000..19d4e8c Binary files /dev/null and b/docs/ADT75.pdf differ diff --git a/va108xx-hal-rs b/va108xx-hal-rs index 535efbd..4eeb06e 160000 --- a/va108xx-hal-rs +++ b/va108xx-hal-rs @@ -1 +1 @@ -Subproject commit 535efbdec57373e2faa6c0054a07cda084ce6b91 +Subproject commit 4eeb06e8eddd01f2d456b7573fc01f836ba0eb46 diff --git a/vorago-reb1-rs b/vorago-reb1-rs index 3b0043e..254bb65 160000 --- a/vorago-reb1-rs +++ b/vorago-reb1-rs @@ -1 +1 @@ -Subproject commit 3b0043ef66e67f17ffc1188f115c08ad47fa24fe +Subproject commit 254bb652d34528362a9d4dd1e7dec676d80b0af2