add Chapter10
This commit is contained in:
32
Chapter10/lambdas/.vscode/launch.json
vendored
Normal file
32
Chapter10/lambdas/.vscode/launch.json
vendored
Normal file
@@ -0,0 +1,32 @@
|
||||
{
|
||||
"version": "0.2.0",
|
||||
"configurations": [
|
||||
{
|
||||
"name": "Debug application in Renode",
|
||||
"type": "cortex-debug",
|
||||
"request": "launch",
|
||||
"preLaunchTask": "Run Renode Debug",
|
||||
"postDebugTask": "Close Renode",
|
||||
"servertype": "external",
|
||||
"gdbPath": "arm-none-eabi-gdb",
|
||||
"gdbTarget": "localhost:3333",
|
||||
"cwd": "${workspaceRoot}",
|
||||
"executable": "${workspaceFolder}/build/bare.elf",
|
||||
"preLaunchCommands": [
|
||||
"monitor machine Reset",
|
||||
"monitor start",
|
||||
"monitor continue"
|
||||
],
|
||||
},
|
||||
{
|
||||
"name": "Run Without Debugging",
|
||||
"type": "node",
|
||||
"request": "launch",
|
||||
"cwd": "${workspaceFolder}",
|
||||
"preLaunchTask": "Run Renode",
|
||||
"postDebugTask": "Close Renode",
|
||||
"internalConsoleOptions": "neverOpen",
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
52
Chapter10/lambdas/.vscode/settings.json
vendored
Normal file
52
Chapter10/lambdas/.vscode/settings.json
vendored
Normal file
@@ -0,0 +1,52 @@
|
||||
{
|
||||
"files.associations": {
|
||||
"span": "cpp",
|
||||
"array": "cpp",
|
||||
"string_view": "cpp",
|
||||
"exception": "cpp",
|
||||
"atomic": "cpp",
|
||||
"bit": "cpp",
|
||||
"*.tcc": "cpp",
|
||||
"cctype": "cpp",
|
||||
"clocale": "cpp",
|
||||
"cmath": "cpp",
|
||||
"compare": "cpp",
|
||||
"concepts": "cpp",
|
||||
"cstdarg": "cpp",
|
||||
"cstddef": "cpp",
|
||||
"cstdint": "cpp",
|
||||
"cstdio": "cpp",
|
||||
"cstdlib": "cpp",
|
||||
"cwchar": "cpp",
|
||||
"cwctype": "cpp",
|
||||
"deque": "cpp",
|
||||
"string": "cpp",
|
||||
"unordered_map": "cpp",
|
||||
"vector": "cpp",
|
||||
"algorithm": "cpp",
|
||||
"functional": "cpp",
|
||||
"iterator": "cpp",
|
||||
"memory": "cpp",
|
||||
"memory_resource": "cpp",
|
||||
"numeric": "cpp",
|
||||
"optional": "cpp",
|
||||
"random": "cpp",
|
||||
"system_error": "cpp",
|
||||
"tuple": "cpp",
|
||||
"type_traits": "cpp",
|
||||
"utility": "cpp",
|
||||
"initializer_list": "cpp",
|
||||
"iosfwd": "cpp",
|
||||
"limits": "cpp",
|
||||
"new": "cpp",
|
||||
"numbers": "cpp",
|
||||
"ostream": "cpp",
|
||||
"stdexcept": "cpp",
|
||||
"streambuf": "cpp",
|
||||
"cinttypes": "cpp",
|
||||
"typeinfo": "cpp",
|
||||
"csignal": "cpp",
|
||||
"cstring": "cpp"
|
||||
},
|
||||
"C_Cpp.errorSquiggles": "disabled"
|
||||
}
|
||||
126
Chapter10/lambdas/.vscode/tasks.json
vendored
Normal file
126
Chapter10/lambdas/.vscode/tasks.json
vendored
Normal file
@@ -0,0 +1,126 @@
|
||||
{
|
||||
"version": "2.0.0",
|
||||
"tasks": [
|
||||
{
|
||||
"label": "Configure",
|
||||
"type": "shell",
|
||||
"command": "cmake",
|
||||
"args": [
|
||||
"-S",
|
||||
"${workspaceFolder}", // Specifies the source directory
|
||||
"-B",
|
||||
"${workspaceFolder}/build", // Specifies the build directory
|
||||
"-DCMAKE_BUILD_TYPE=Debug" // Example of setting a CMake variable
|
||||
],
|
||||
"group": "build",
|
||||
"problemMatcher": [],
|
||||
"detail": "Generates build system files with CMake"
|
||||
},
|
||||
{
|
||||
"label": "Copy Compile Db",
|
||||
"type": "shell",
|
||||
"dependsOn": [
|
||||
"Configure"
|
||||
],
|
||||
"command": "cp ${workspaceFolder}/build/compile_commands.json ${workspaceFolder}",
|
||||
"group": "build",
|
||||
"problemMatcher": [],
|
||||
"detail": "Generates build system files with CMake"
|
||||
},
|
||||
{
|
||||
"label": "Build",
|
||||
"type": "shell",
|
||||
"dependsOn": [
|
||||
"Copy Compile Db"
|
||||
],
|
||||
"command": "make",
|
||||
"args": [
|
||||
"-C", "build"
|
||||
],
|
||||
"group": {
|
||||
"kind": "build",
|
||||
"isDefault": true
|
||||
},
|
||||
"problemMatcher": [],
|
||||
"presentation": {
|
||||
"reveal": "always",
|
||||
"panel": "shared"
|
||||
}
|
||||
},
|
||||
{
|
||||
"label": "Run Renode",
|
||||
"type": "shell",
|
||||
"command": "renode",
|
||||
"args": [
|
||||
"--console",
|
||||
"--disable-xwt",
|
||||
"${workspaceFolder}/renode_scripts/stm32f072.resc"
|
||||
],
|
||||
"dependsOn": [
|
||||
"Build"
|
||||
],
|
||||
"isBackground": true,
|
||||
"problemMatcher": {
|
||||
"source": "Renode",
|
||||
"pattern": {
|
||||
"regexp": ""
|
||||
},
|
||||
"background": {
|
||||
"activeOnStart": true,
|
||||
"beginsPattern": "Renode, version .*",
|
||||
"endsPattern": ".*GDB server with all CPUs started on port.*"
|
||||
}
|
||||
},
|
||||
"group": "build",
|
||||
"presentation": {
|
||||
"reveal": "always",
|
||||
"panel": "dedicated"
|
||||
}
|
||||
},
|
||||
{
|
||||
"label": "Run Renode Debug",
|
||||
"type": "shell",
|
||||
"command": "renode",
|
||||
"args": [
|
||||
"--console",
|
||||
"--disable-xwt",
|
||||
"${workspaceFolder}/renode_scripts/stm32f072_debug.resc"
|
||||
],
|
||||
"dependsOn": [
|
||||
"Build"
|
||||
],
|
||||
"isBackground": true,
|
||||
"problemMatcher": {
|
||||
"source": "Renode",
|
||||
"pattern": {
|
||||
"regexp": ""
|
||||
},
|
||||
"background": {
|
||||
"activeOnStart": true,
|
||||
"beginsPattern": "Renode, version .*",
|
||||
"endsPattern": ".*GDB server with all CPUs started on port.*"
|
||||
}
|
||||
},
|
||||
"group": "build",
|
||||
"presentation": {
|
||||
"reveal": "always",
|
||||
"panel": "dedicated"
|
||||
}
|
||||
},
|
||||
{
|
||||
"label": "Close Renode",
|
||||
"command": "echo ${input:terminate}",
|
||||
"type": "shell",
|
||||
"problemMatcher": []
|
||||
}
|
||||
],
|
||||
"inputs": [
|
||||
{
|
||||
"id": "terminate",
|
||||
"type": "command",
|
||||
"command": "workbench.action.tasks.terminate",
|
||||
"args": "terminateAll"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user