Skip to content

Commit c92d0d9

Browse files
committed
Refactor mlogv32 tui, add debug launch configs
1 parent ec96e90 commit c92d0d9

File tree

7 files changed

+192
-121
lines changed

7 files changed

+192
-121
lines changed

.prettierrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"tabWidth": 4
3+
}

.vscode/launch.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"configurations": [
3+
{
4+
"name": "mlogv32",
5+
"type": "cppvsdbg",
6+
"request": "launch",
7+
"preLaunchTask": "mlogv32: build",
8+
"program": "${workspaceFolder}/target/dev-debug/mlogv32.exe",
9+
"args": [
10+
"schematics/mlogv32.msch",
11+
"--bin",
12+
"../mlogv32/coremark/coremark/coremark.bin"
13+
],
14+
"stopAtEntry": false,
15+
"cwd": "${workspaceFolder}",
16+
"environment": [],
17+
"console": "integratedTerminal"
18+
}
19+
]
20+
}

.vscode/settings.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"files.associations": {
3-
"**/mimex-*.txt": "csv",
3+
"**/mimex-*.txt": "csv"
44
},
5-
"rust-analyzer.cargo.features": "all",
6-
}
5+
"rust-analyzer.cargo.features": "all"
6+
}

.vscode/tasks.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"version": "2.0.0",
3+
"tasks": [
4+
{
5+
"label": "mlogv32: build",
6+
"type": "cargo",
7+
"command": "build",
8+
"args": [
9+
"--profile",
10+
"dev-debug",
11+
"--features",
12+
"mlogv32",
13+
"--bin",
14+
"mlogv32"
15+
],
16+
"problemMatcher": ["$rustc"],
17+
"group": "build"
18+
}
19+
]
20+
}

Cargo.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,3 +48,7 @@ mlogv32 = [
4848
"dep:cursive",
4949
"dep:indicatif",
5050
]
51+
52+
[profile.dev-debug]
53+
inherits = "dev"
54+
opt-level = 1

0 commit comments

Comments
 (0)