mirror of
https://github.com/ferrous-systems/embedded-trainings-2020.git
synced 2024-05-16 23:43:01 +00:00
Use a task file for the beginner apps.
Lets you set the DEFMT_LOG env variable more easily even with VS Code is auto-building the code.
This commit is contained in:
parent
2a1379db5e
commit
edbf34cf00
4
beginner/apps/.vscode/launch.json
vendored
4
beginner/apps/.vscode/launch.json
vendored
|
@ -7,9 +7,9 @@
|
||||||
"executable": "./target/thumbv7em-none-eabihf/debug/hello",
|
"executable": "./target/thumbv7em-none-eabihf/debug/hello",
|
||||||
"name": "Debug Microcontroller (launch)",
|
"name": "Debug Microcontroller (launch)",
|
||||||
"request": "launch",
|
"request": "launch",
|
||||||
"preLaunchTask": "rust: cargo build",
|
"preLaunchTask": "Build Rust (Debug)",
|
||||||
"type": "cortex-debug",
|
"type": "cortex-debug",
|
||||||
"runToMain": true,
|
"runToEntryPoint": "main",
|
||||||
"configFiles": [
|
"configFiles": [
|
||||||
"interface/jlink.cfg",
|
"interface/jlink.cfg",
|
||||||
],
|
],
|
||||||
|
|
27
beginner/apps/.vscode/tasks.json
vendored
Normal file
27
beginner/apps/.vscode/tasks.json
vendored
Normal file
|
@ -0,0 +1,27 @@
|
||||||
|
{
|
||||||
|
// See https://go.microsoft.com/fwlink/?LinkId=733558
|
||||||
|
// for the documentation about the tasks.json format
|
||||||
|
"version": "2.0.0",
|
||||||
|
"tasks": [
|
||||||
|
{
|
||||||
|
"label": "Build Rust (Debug)",
|
||||||
|
"type": "shell",
|
||||||
|
"command": "cargo build",
|
||||||
|
"options": {
|
||||||
|
"env": {
|
||||||
|
"DEFMT_LOG": "debug",
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "Build Rust (Warn)",
|
||||||
|
"type": "shell",
|
||||||
|
"command": "cargo build",
|
||||||
|
"options": {
|
||||||
|
"env": {
|
||||||
|
"DEFMT_LOG": "warn",
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
Loading…
Reference in a new issue