This commit is contained in:
Robin Müller 2021-12-03 14:25:43 +01:00
commit c9405bc0ca
No known key found for this signature in database
GPG Key ID: 11D4952C8CCEF814
6 changed files with 61 additions and 3 deletions

2
.gitignore vendored
View File

@ -8,3 +8,5 @@ Cargo.lock
# These are backup files generated by rustfmt # These are backup files generated by rustfmt
**/*.rs.bk **/*.rs.bk
/.vscode/.cortex-debug.*

3
.gitmodules vendored
View File

@ -7,3 +7,6 @@
[submodule "va108xx-hal-rs"] [submodule "va108xx-hal-rs"]
path = va108xx-hal-rs path = va108xx-hal-rs
url = https://github.com/robamu-org/va108xx-hal-rs.git 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

31
.vscode/launch.json vendored
View File

@ -83,11 +83,38 @@
"cwd": "${workspaceRoot}", "cwd": "${workspaceRoot}",
"device": "VA10820", "device": "VA10820",
"svdFile": "./va108xx-rs/svd/va108xx-base.svd.patched", "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", "executable": "${workspaceFolder}/target/thumbv6m-none-eabi/debug/examples/uart",
"interface": "jtag", "interface": "jtag",
"runToMain": true, "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,
},
] ]
} }

27
.vscode/tasks.json vendored
View File

@ -21,6 +21,7 @@
"command": "~/.cargo/bin/cargo", // note: full path to the cargo "command": "~/.cargo/bin/cargo", // note: full path to the cargo
"args": [ "args": [
"build", "-p", "va108xx-hal", "--example", "tests", "build", "-p", "va108xx-hal", "--example", "tests",
"--features", "rt"
], ],
"group": { "group": {
"kind": "build", "kind": "build",
@ -53,7 +54,7 @@
} }
}, },
{ {
"label": "rust: cargo build button uart", "label": "rust: cargo build uart",
"type": "shell", "type": "shell",
"command": "~/.cargo/bin/cargo", // note: full path to the cargo "command": "~/.cargo/bin/cargo", // note: full path to the cargo
"args": [ "args": [
@ -64,6 +65,18 @@
"isDefault": true "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", "label": "rust: cargo build led blinky",
@ -89,5 +102,17 @@
"isDefault": true "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
}
},
] ]
} }

1
adt75-rs Submodule

@ -0,0 +1 @@
Subproject commit 8b7121eb4771c2537c6123f632d20fbfb2ba3657

BIN
docs/ADT75.pdf Normal file

Binary file not shown.