Difference between revisions of "Zephyr driver demo"
From Wiki at Neela Nurseries
m (→^ Key Zephyr App Files) |
m (→^ Key Zephyr App Files) |
||
Line 22: | Line 22: | ||
demo (app) | demo (app) | ||
¦ | ¦ | ||
+ | CMakeLists.txt <i><- set toolchain variant and toolchain path</i> | ||
+ | Kconfig <i><- refers to Zephyr top level Kconfig</i> | ||
west.yml <i><- chooses SDK, driver projects (1)</i> | west.yml <i><- chooses SDK, driver projects (1)</i> | ||
− | |||
− | |||
| style="vertical-align: top;" | | | style="vertical-align: top;" | | ||
− | < | + | |
− | + | driver | |
− | + | ¦ | |
− | </ | + | CMakeLists.txt <i><- add subdirs when given drivers enabled, |
+ | add include dirs holding header files</i> | ||
+ | Kconfig <i><- refers to Kconfig in child 'drivers' directory</i> | ||
+ | |||
|} | |} | ||
Revision as of 16:24, 25 August 2021
Zephyr Driver and Separate Demo
- OVERVIEW - Here list and begin to describe key, salient features of a Zephyr RTOS based driver and separately build-able demo to exercise given driver. Driver for first version 0p0 is "out of tree", in other words outside of Zephyr project's source tree.
^ Key Zephyr App Files
Move to refs:
* https://dev.w3.org/html5/html-author/charref
Key files in the two parts of Zephyr out-of-tree driver and demonstrating app:
Zephyr app | Driver out-of-tree |
---|---|
demo (app) ¦ CMakeLists.txt <- set toolchain variant and toolchain path Kconfig <- refers to Zephyr top level Kconfig west.yml <- chooses SDK, driver projects (1) |
driver ¦ CMakeLists.txt <- add subdirs when given drivers enabled, add include dirs holding header files Kconfig <- refers to Kconfig in child 'drivers' directory |
All the more that is in Jared Wolff's AQW demo:
ted@localhost:~/projects/embedded/ncs/zephyr/samples/sandbox-de-ted/jared-wolff/demo$ tree -R . ├── boards │ ├── nrf52840dk_nrf52840.conf │ └── nrf52840dk_nrf52840.overlay ├── CMakeLists.txt ├── Kconfig ├── prj.conf ├── prj.debug.conf ├── prj.release.conf ├── README.md ├── src │ └── main.c ├── west.yml └── z--build-messages-001--first-build.txt 2 directories, 11 files
^ Useful Commands To Manage Details
Command available on Ubuntu hosts to effectively locate Zephyr RTOS project installations:
ted@localhost:~/projects/embedded$ locate VERSION | grep 'ION$'