3
.gitignore
vendored
3
.gitignore
vendored
@@ -9,4 +9,5 @@ target/
|
|||||||
!.vscode/*.md
|
!.vscode/*.md
|
||||||
!.vscode/*.svd
|
!.vscode/*.svd
|
||||||
!.vscode/launch.json
|
!.vscode/launch.json
|
||||||
!.vscode/tasks.json
|
!.vscode/tasks.json
|
||||||
|
!.vscode/extensions.json
|
||||||
14
.vscode/extensions.json
vendored
Normal file
14
.vscode/extensions.json
vendored
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
{
|
||||||
|
// See https://go.microsoft.com/fwlink/?LinkId=827846 to learn about workspace recommendations.
|
||||||
|
// Extension identifier format: ${publisher}.${name}. Example: vscode.csharp
|
||||||
|
|
||||||
|
// List of extensions which should be recommended for users of this workspace.
|
||||||
|
"recommendations": [
|
||||||
|
"rust-lang.rust",
|
||||||
|
"marus25.cortex-debug",
|
||||||
|
],
|
||||||
|
// List of extensions recommended by VS Code that should not be recommended for users of this workspace.
|
||||||
|
"unwantedRecommendations": [
|
||||||
|
|
||||||
|
]
|
||||||
|
}
|
||||||
4
.vscode/launch.json
vendored
4
.vscode/launch.json
vendored
@@ -12,7 +12,7 @@
|
|||||||
"name": "Debug (QEMU)",
|
"name": "Debug (QEMU)",
|
||||||
"servertype": "qemu",
|
"servertype": "qemu",
|
||||||
"cwd": "${workspaceRoot}",
|
"cwd": "${workspaceRoot}",
|
||||||
"preLaunchTask": "build",
|
"preLaunchTask": "cargo build",
|
||||||
"runToMain": true,
|
"runToMain": true,
|
||||||
"executable": "./target/thumbv7m-none-eabi/debug/{{project-name}}",
|
"executable": "./target/thumbv7m-none-eabi/debug/{{project-name}}",
|
||||||
/* Run `cargo build --example hello` and uncomment this line to run semi-hosting example */
|
/* Run `cargo build --example hello` and uncomment this line to run semi-hosting example */
|
||||||
@@ -27,7 +27,7 @@
|
|||||||
"name": "Debug (OpenOCD)",
|
"name": "Debug (OpenOCD)",
|
||||||
"servertype": "openocd",
|
"servertype": "openocd",
|
||||||
"cwd": "${workspaceRoot}",
|
"cwd": "${workspaceRoot}",
|
||||||
"preLaunchTask": "build",
|
"preLaunchTask": "cargo build",
|
||||||
"runToMain": true,
|
"runToMain": true,
|
||||||
"executable": "./target/thumbv7em-none-eabihf/debug/{{project-name}}",
|
"executable": "./target/thumbv7em-none-eabihf/debug/{{project-name}}",
|
||||||
/* Run `cargo build --example itm` and uncomment this line to run itm example */
|
/* Run `cargo build --example itm` and uncomment this line to run itm example */
|
||||||
|
|||||||
38
.vscode/tasks.json
vendored
38
.vscode/tasks.json
vendored
@@ -9,7 +9,7 @@
|
|||||||
* but we need to provide a label for it,
|
* but we need to provide a label for it,
|
||||||
* so we can invoke it from the debug launcher.
|
* so we can invoke it from the debug launcher.
|
||||||
*/
|
*/
|
||||||
"label": "build",
|
"label": "cargo build",
|
||||||
"type": "cargo",
|
"type": "cargo",
|
||||||
"subcommand": "build",
|
"subcommand": "build",
|
||||||
"problemMatcher": [
|
"problemMatcher": [
|
||||||
@@ -20,5 +20,41 @@
|
|||||||
"isDefault": true
|
"isDefault": true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"label": "cargo build --release",
|
||||||
|
"type": "process",
|
||||||
|
"command": "cargo",
|
||||||
|
"args": ["build", "--release"],
|
||||||
|
"problemMatcher": [
|
||||||
|
"$rustc"
|
||||||
|
],
|
||||||
|
"group": "build"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "cargo build --examples",
|
||||||
|
"type": "process",
|
||||||
|
"command": "cargo",
|
||||||
|
"args": ["build","--examples"],
|
||||||
|
"problemMatcher": [
|
||||||
|
"$rustc"
|
||||||
|
],
|
||||||
|
"group": "build"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "cargo build --examples --release",
|
||||||
|
"type": "process",
|
||||||
|
"command": "cargo",
|
||||||
|
"args": ["build","--examples", "--release"],
|
||||||
|
"problemMatcher": [
|
||||||
|
"$rustc"
|
||||||
|
],
|
||||||
|
"group": "build"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "cargo clean",
|
||||||
|
"type": "cargo",
|
||||||
|
"subcommand": "clean",
|
||||||
|
"group": "build"
|
||||||
|
},
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user