| Both sides previous revisionPrevious revisionNext revision | Previous revision |
| zephyr [2025/04/20 15:01] – [Devicetree] utedass | zephyr [2025/12/03 21:35] (current) – [Länkar] utedass |
|---|
| ===== Länkar ===== | ===== Länkar ===== |
| |
| | * [[https://github.com/Utedass/zephyr-workspace]] -- My own devcontainer setup for Zephyr development |
| * [[https://embedded.fm/episodes/475?rq=zephyr]] -- Nämner bland annat att det finns några tänkta sätt att strukturera sina projekt för att inte blanda in sin projekt-kod i zephyr-repot | * [[https://embedded.fm/episodes/475?rq=zephyr]] -- Nämner bland annat att det finns några tänkta sätt att strukturera sina projekt för att inte blanda in sin projekt-kod i zephyr-repot |
| * [[https://www.youtube.com/watch?v=tAH5fy0rSo4|Youtube Linux Foundation]] -- Zephyr Project: RTOS Start-up and Initialization Flow | * [[https://www.youtube.com/watch?v=tAH5fy0rSo4|Youtube Linux Foundation]] -- Zephyr Project: RTOS Start-up and Initialization Flow |
| | |
| | * [[https://interrupt.memfault.com/blog/building-drivers-on-zephyr]] |
| | |
| | * [[https://community.circuitdojo.com/d/146-zephyr-driver-development-use-of-i2c-and-spi-apis]] |
| | |
| | == Real world examples == |
| | * [[https://github.com/zephyrproject-rtos/awesome-zephyr-rtos/tree/main]] -- Awezome Zephyr related list |
| | * [[https://github.com/xycloo/zephyr-examples/tree/master]] -- Rust examples |
| | * [[https://github.com/zmkfirmware/zmk/tree/main]] -- Zephyr Mechanical Keyboard |
| | * [[https://github.com/jakkra/ZSWatch/tree/main]] -- Open Source Smart Watch |
| | |
| |
| == Shawn Hymel / Digikey == | == Shawn Hymel / Digikey == |
| </code> | </code> |
| |
| | ===== Platser ===== |
| | | ''zephyr/dts/<arch>/<mfr>/<soc>/'' | .dtsi filer för olika chip | |
| | | ''zephyr/dts/bindings/<feature>/<compatible>.yaml'' | .yaml binding-filer för olika chips drivrutiner | |
| | | ''zephyr/boards/<mfr>/<board>/'' | .dts, Kconfig och default configs för boards | |
| | | ''zephyr/soc/<mfr>/<soc>/soc.h'' | Startup-kod, HAL-includes etc för specifikt chip | |
| | | ''zephyr/arch/<arch>/core/'' | Assembler-startup etc för specifik arkitektur | |
| ===== CMake ===== | ===== CMake ===== |
| === CMakeList.txt in project === | === CMakeList.txt in project === |
| </code> | </code> |
| |
| Sparas till ./build/zephyr/.config som kommer tas bort vid nästa bygge. | Sparas till ''./build/zephyr/.config'' som kommer tas bort vid nästa bygge. |
| | |
| | Generates an include file in ''build/zephyr/include/generated/zephyr/autoconf.h'' |
| |
| För att göra persistent, kolla diff mellan ./build/zephyr/.config.old | För att göra persistent, kolla diff mellan ./build/zephyr/.config.old |
| |
| The final devicetree will end up under ''build/zephyr/zephyr.dts''. | The final devicetree will end up under ''build/zephyr/zephyr.dts''. |
| | |
| | There is an include file generated from this in ''build/zephyr/include/generated/zephyr/devicetree_generated.h'' |
| |
| === Words === | === Words === |
| |
| == Example == | == Example == |
| | ''boards/esp32s3_devkitc.overlay'' |
| <code> | <code> |
| / { | / { |