diff --git a/.gitignore b/.gitignore index 088ba6b..51c87c3 100644 --- a/.gitignore +++ b/.gitignore @@ -8,3 +8,5 @@ Cargo.lock # These are backup files generated by rustfmt **/*.rs.bk + +/.vscode/.cortex-debug.* diff --git a/.gitmodules b/.gitmodules index dc3c67c..3ab3126 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 4e97c41..531953f 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -83,11 +83,38 @@ "cwd": "${workspaceRoot}", "device": "VA10820", "svdFile": "./va108xx-rs/svd/va108xx-base.svd.patched", - "preLaunchTask": "rust: cargo build button uart", + "preLaunchTask": "rust: cargo build uart", "executable": "${workspaceFolder}/target/thumbv6m-none-eabi/debug/examples/uart", "interface": "jtag", "runToMain": true, }, - + { + "type": "cortex-debug", + "request": "launch", + "name": "Debug SPI", + "servertype": "jlink", + "gdbPath": "/usr/bin/gdb-multiarch", + "cwd": "${workspaceRoot}", + "device": "VA10820", + "svdFile": "./va108xx-rs/svd/va108xx-base.svd.patched", + "preLaunchTask": "rust: cargo build spi", + "executable": "${workspaceFolder}/target/thumbv6m-none-eabi/debug/examples/spi", + "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 cb2762e..3f79530 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -21,6 +21,7 @@ "command": "~/.cargo/bin/cargo", // note: full path to the cargo "args": [ "build", "-p", "va108xx-hal", "--example", "tests", + "--features", "rt" ], "group": { "kind": "build", @@ -53,7 +54,7 @@ } }, { - "label": "rust: cargo build button uart", + "label": "rust: cargo build uart", "type": "shell", "command": "~/.cargo/bin/cargo", // note: full path to the cargo "args": [ @@ -64,6 +65,18 @@ "isDefault": true } }, + { + "label": "rust: cargo build spi", + "type": "shell", + "command": "~/.cargo/bin/cargo", // note: full path to the cargo + "args": [ + "build", "-p", "va108xx-hal", "--example", "spi", + ], + "group": { + "kind": "build", + "isDefault": true + } + }, { "label": "rust: cargo build led blinky", @@ -89,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