From cf61bb4cc658238e768bc8d9de5fa420071d12c3 Mon Sep 17 00:00:00 2001 From: Isaac Poole Date: Tue, 26 Nov 2024 00:16:46 -0500 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20chore(gitignore):=20update=20.gi?= =?UTF-8?q?tignore=20file?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - remove /.pio and .vscode entries - clean up unnecessary ignore patterns 🔧 chore(vscode): add VSCode configuration files - introduce launch.json for debug configuration - add settings.json with rust analyzer and spell checker settings --- .gitignore | 4 ---- .vscode/launch.json | 36 ++++++++++++++++++++++++++++++++++++ .vscode/settings.json | 5 +++++ 3 files changed, 41 insertions(+), 4 deletions(-) create mode 100644 .vscode/launch.json create mode 100644 .vscode/settings.json diff --git a/.gitignore b/.gitignore index 15b1bd1..580425c 100644 --- a/.gitignore +++ b/.gitignore @@ -5,8 +5,6 @@ .DS_Store -/.pio - /set # Byte-compiled / optimized / DLL files @@ -124,5 +122,3 @@ dmypy.json # Pyre type checker .pyre/ -.vscode - diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..4da161e --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,36 @@ +// The format of this file is specified in https://probe.rs/docs/tools/debugger/#start-a-debug-session-with-minimum-configuration +{ + "version": "0.2.0", + "configurations": [ + { + "preLaunchTask": "rust: cargo build", + "type": "probe-rs-debug", + "request": "launch", + "name": "rp2040-project", + "cwd": "${workspaceFolder}/embedded", + "chip": "rp2040", + // RP2040 doesn't support connectUnderReset + "connectUnderReset": false, + "speed": 4000, + "runtimeExecutable": "probe-rs", + "runtimeArgs": ["dap-server"], + "flashingConfig": { + "flashingEnabled": true, + "haltAfterReset": false + }, + "coreConfigs": [ + { + "coreIndex": 0, + "programBinary": "target/thumbv6m-none-eabi/debug/rp2040-project-template", + "rttEnabled": true + // Uncomment this if you've downloaded the SVD from + // https://github.com/raspberrypi/pico-sdk/raw/1.3.1/src/rp2040/hardware_regs/rp2040.svd + // and placed it in the .vscode directory + // "svdFile": "./.vscode/rp2040.svd", + } + ], + "consoleLogLevel": "Info", //Error, Warn, Info, Debug, Trace + "wireProtocol": "Swd" + } + ] +} diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..4c68e05 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,5 @@ +{ + "cSpell.words": ["teensylc"], + "rust-analyzer.cargo.target": "thumbv6m-none-eabi", + "rust-analyzer.check.allTargets": false +}