Skip to content

Commit

Permalink
local development setup
Browse files Browse the repository at this point in the history
  • Loading branch information
englmaxi committed Nov 26, 2023
1 parent a3f30ee commit 71c8272
Show file tree
Hide file tree
Showing 2 changed files with 75 additions and 9 deletions.
48 changes: 48 additions & 0 deletions .vscode/c_cpp_properties.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
{
"configurations": [
{
"name": "LEFT",
"includePath": [
"/workspaces/zmk/**"
],
"defines": [],
"compilerPath": "/opt/zephyr-sdk-0.15.2/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc",
"cStandard": "c17",
"cppStandard": "c++98",
"intelliSenseMode": "linux-gcc-arm",
"compileCommands": "/workspaces/zmk/app/build/left/compile_commands.json",
"compilerPathInCppPropertiesJson": "/opt/zephyr-sdk-0.15.2/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc",
"compileCommandsInCppPropertiesJson": "${workspaceFolder}/app/build/left/compile_commands.json",
"mergeConfigurations": false,
"browse": {
"path": [
"/workspaces/zmk/**",
"${workspaceFolder}"
],
"limitSymbolsToIncludedHeaders": true
}
},
{
"name": "RIGHT",
"includePath": [
"/workspaces/zmk/**"
],
"defines": [],
"compilerPath": "/opt/zephyr-sdk-0.15.2/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc",
"cStandard": "c17",
"cppStandard": "c++98",
"intelliSenseMode": "linux-gcc-arm",
"compilerPathInCppPropertiesJson": "/opt/zephyr-sdk-0.15.2/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc",
"mergeConfigurations": false,
"browse": {
"path": [
"/workspaces/zmk/**",
"/workspaces/zmk"
],
"limitSymbolsToIncludedHeaders": true
},
"compileCommands": "/workspaces/zmk/app/build/right/compile_commands.json"
}
],
"version": 4
}
36 changes: 27 additions & 9 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,6 @@
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "Build",
"type": "shell",
"command": "cd app && west build",
"group": {
"kind": "build",
"isDefault": true
}
},
{
"label": "Flash",
"type": "shell",
Expand All @@ -23,6 +14,33 @@
"type": "shell",
"command": "cd app && west debug",
"group": "test"
},
{
"label": "Build Cradio (right)",
"type": "shell",
"command": "cd app && west build -p -d build/right -b nice_nano_v2 -- -DSHIELD=cradio_right -DZMK_CONFIG=\"/workspaces/zmk-config/config\"",
"group": {
"kind": "build",
"isDefault": false
}
},
{
"label": "Build Cradio (left)",
"type": "shell",
"command": "cd app && west build -p -d build/left -b nice_nano_v2 -- -DSHIELD=cradio_left -DZMK_CONFIG=\"/workspaces/zmk-config/config\"",
"group": {
"kind": "build",
"isDefault": true
}
},
{
"label": "Build native_posix_64",
"type": "shell",
"command": "cd app && west build -p -d build/test -b native_posix_64 -- -DZMK_CONFIG=tests/none/normal/",
"group": {
"kind": "build",
"isDefault": false
}
}
]
}

0 comments on commit 71c8272

Please sign in to comment.