generated from beriberikix/zephyr-vscode-example
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add POST method to HttpClient class * update readme * Added zbus example * Adding dev container
- Loading branch information
1 parent
c0b3331
commit ab2249d
Showing
14 changed files
with
659 additions
and
106 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
{ | ||
"image": "ghcr.io/embeddedcontainers/zephyr:arm-0.16.4SDK", | ||
"workspaceMount": "source=${localWorkspaceFolder},target=/workspace/app,type=bind", | ||
"workspaceFolder": "/workspace", | ||
"onCreateCommand": "west init -l app/ && west update && west zephyr-export && pip install -r deps/zephyr/scripts/requirements-base.txt", | ||
"mounts": [ | ||
"source=${localWorkspaceFolder}/.vscode/,target=/workspace/.vscode,type=bind,consistency=cached" | ||
], | ||
"customizations": { | ||
"vscode": { | ||
"settings": { | ||
// Hush CMake | ||
"cmake.configureOnOpen": false, | ||
// IntelliSense | ||
"C_Cpp.default.compilerPath": "/opt/toolchains/zephyr-sdk-0.16.1/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc", | ||
"C_Cpp.default.compileCommands": "${workspaceFolder}/app/build/compile_commands.json", | ||
// File Associations | ||
"files.associations": {} | ||
}, | ||
"extensions": [ | ||
"ms-vscode.cpptools", | ||
"ms-python.python", | ||
"ms-vscode.vscode-embedded-tools", | ||
"marus25.cortex-debug", | ||
"plorefice.devicetree", | ||
"PKief.material-icon-theme", | ||
"streetsidesoftware.code-spell-checker" | ||
] | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
build | ||
deps | ||
.vscode | ||
deps |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
{ | ||
// See https://go.microsoft.com/fwlink/?LinkId=733558 | ||
// for the documentation about the tasks.json format | ||
"version": "2.0.0", | ||
"tasks": [ | ||
{ | ||
"label": "Build", | ||
"type": "shell", | ||
"group": { | ||
"kind": "build", | ||
"isDefault": true | ||
}, | ||
"command": "west", | ||
"args": [ | ||
"build", | ||
"${workspaceFolder}/app", | ||
"--build-dir", | ||
"${workspaceFolder}/app/build", | ||
"-p", | ||
"auto", | ||
"-b", | ||
"nucleo_f767zi" | ||
], | ||
"problemMatcher": [ | ||
"$gcc" | ||
] | ||
}, | ||
{ | ||
"label": "Clean", | ||
"type": "shell", | ||
"command": "rm", | ||
"args": [ | ||
"-rf", | ||
"${workspaceFolder}/app/build" | ||
], | ||
"problemMatcher": [ | ||
"$gcc" | ||
] | ||
}, | ||
{ | ||
"label": "Update", | ||
"type": "shell", | ||
"command": "west", | ||
"args": [ | ||
"update" | ||
] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
### Class design | ||
When it comes to class design for embedded systems and specifically microcontrollers there are different types of strategies. | ||
|
||
There are BSP classes that are used to create an object that interact directly with hardware like a sensor or a peripheral, these are generally wrapper classes on top of the drivers. | ||
|
||
There are Model classes that are used to describe and store object data, these are simply data holders that organize data in a single object replacing the old C data structuring. | ||
|
||
There are Service classes that are used to create more complex objects that have their own threads of execution. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.