Skip to content

Commit

Permalink
🔧 chore(gitignore): update .gitignore file
Browse files Browse the repository at this point in the history
- 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
  • Loading branch information
isfopo committed Nov 26, 2024
1 parent 046c9a5 commit cf61bb4
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 4 deletions.
4 changes: 0 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@

.DS_Store

/.pio

/set

# Byte-compiled / optimized / DLL files
Expand Down Expand Up @@ -124,5 +122,3 @@ dmypy.json
# Pyre type checker
.pyre/

.vscode

36 changes: 36 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -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"
}
]
}
5 changes: 5 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"cSpell.words": ["teensylc"],
"rust-analyzer.cargo.target": "thumbv6m-none-eabi",
"rust-analyzer.check.allTargets": false
}

0 comments on commit cf61bb4

Please sign in to comment.