From 1b07d0f2585aa75a98d72fb0be682eacce8d37a9 Mon Sep 17 00:00:00 2001 From: Robin Mueller Date: Mon, 17 Feb 2025 11:36:40 +0100 Subject: [PATCH] update VS Code files --- vscode/launch.json | 94 +++++++++++++++++++++++++++++++++++++++++++++- vscode/tasks.json | 39 +++++++++++++++++++ 2 files changed, 131 insertions(+), 2 deletions(-) diff --git a/vscode/launch.json b/vscode/launch.json index d942236..3ca187b 100644 --- a/vscode/launch.json +++ b/vscode/launch.json @@ -353,7 +353,7 @@ { "type": "cortex-debug", "request": "launch", - "name": "UART Echo with IRQ", + "name": "UART Line Terminated Example", "servertype": "jlink", "jlinkscript": "${workspaceFolder}/jlink/JLinkSettings.JLinkScript", "cwd": "${workspaceRoot}", @@ -500,5 +500,95 @@ ] } }, + { + "type": "cortex-debug", + "request": "launch", + "name": "Async GPIO Example", + "servertype": "jlink", + "jlinkscript": "${workspaceFolder}/jlink/JLinkSettings.JLinkScript", + "cwd": "${workspaceRoot}", + "device": "Cortex-M4", + "svdFile": "${workspaceFolder}/va416xx/svd/va416xx.svd.patched", + "preLaunchTask": "async-gpio", + "overrideLaunchCommands": [ + "monitor halt", + "monitor reset", + "load", + ], + "executable": "${workspaceFolder}/target/thumbv7em-none-eabihf/debug/async-gpio", + "interface": "swd", + "runToEntryPoint": "main", + "rttConfig": { + "enabled": true, + "address": "auto", + "decoders": [ + { + "port": 0, + "timestamp": true, + "type": "console" + } + ] + } + }, + { + "type": "cortex-debug", + "request": "launch", + "name": "Async UART TX Example", + "servertype": "jlink", + "jlinkscript": "${workspaceFolder}/jlink/JLinkSettings.JLinkScript", + "cwd": "${workspaceRoot}", + "device": "Cortex-M4", + "svdFile": "${workspaceFolder}/va416xx/svd/va416xx.svd.patched", + "preLaunchTask": "async-uart-tx", + "overrideLaunchCommands": [ + "monitor halt", + "monitor reset", + "load", + ], + "executable": "${workspaceFolder}/target/thumbv7em-none-eabihf/debug/async-uart-tx", + "interface": "swd", + "runToEntryPoint": "main", + "rttConfig": { + "enabled": true, + "address": "auto", + "decoders": [ + { + "port": 0, + "timestamp": true, + "type": "console" + } + ] + } + }, + { + "type": "cortex-debug", + "request": "launch", + "name": "Async UART RX Example", + "servertype": "jlink", + "jlinkscript": "${workspaceFolder}/jlink/JLinkSettings.JLinkScript", + "cwd": "${workspaceRoot}", + "device": "Cortex-M4", + "svdFile": "${workspaceFolder}/va416xx/svd/va416xx.svd.patched", + "preLaunchTask": "async-uart-rx", + "overrideLaunchCommands": [ + "monitor halt", + "monitor reset", + "load", + ], + "executable": "${workspaceFolder}/target/thumbv7em-none-eabihf/debug/async-uart-rx", + "interface": "swd", + "runToEntryPoint": "main", + "rttConfig": { + "enabled": true, + "address": "auto", + "decoders": [ + { + "port": 0, + "timestamp": true, + "type": "console" + } + ] + } + }, ] -} +} \ No newline at end of file diff --git a/vscode/tasks.json b/vscode/tasks.json index d20cc8f..7e7bc7f 100644 --- a/vscode/tasks.json +++ b/vscode/tasks.json @@ -199,6 +199,19 @@ "kind": "build", } }, + { + "label": "async-gpio", + "type": "shell", + "command": "~/.cargo/bin/cargo", // note: full path to the cargo + "args": [ + "build", + "--bin", + "async-gpio" + ], + "group": { + "kind": "build", + } + }, { "label": "rtic-example", "type": "shell", @@ -212,5 +225,31 @@ "kind": "build", } }, + { + "label": "async-uart-tx", + "type": "shell", + "command": "~/.cargo/bin/cargo", // note: full path to the cargo + "args": [ + "build", + "--bin", + "async-uart-tx" + ], + "group": { + "kind": "build", + } + }, + { + "label": "async-uart-rx", + "type": "shell", + "command": "~/.cargo/bin/cargo", // note: full path to the cargo + "args": [ + "build", + "--bin", + "async-uart-rx" + ], + "group": { + "kind": "build", + } + }, ] } \ No newline at end of file -- 2.43.0