From 7d521f2c92098f4bf310c2335bade77838b414c8 Mon Sep 17 00:00:00 2001 From: Robin Mueller Date: Mon, 15 Nov 2021 10:55:22 +0100 Subject: [PATCH] added spi task and launch cfg --- .vscode/launch.json | 17 +++++++++++++++-- .vscode/tasks.json | 14 +++++++++++++- va108xx-hal-rs | 2 +- 3 files changed, 29 insertions(+), 4 deletions(-) diff --git a/.vscode/launch.json b/.vscode/launch.json index 4e97c41..522b78b 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -83,11 +83,24 @@ "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, + }, ] } \ No newline at end of file diff --git a/.vscode/tasks.json b/.vscode/tasks.json index cb2762e..78a674d 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -53,7 +53,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 +64,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", diff --git a/va108xx-hal-rs b/va108xx-hal-rs index 7c3a425..cc63545 160000 --- a/va108xx-hal-rs +++ b/va108xx-hal-rs @@ -1 +1 @@ -Subproject commit 7c3a425ce0523e6e66b790a54175c8b79c50818e +Subproject commit cc635457d0d75296fcb46d2b9884d9dae72fe429