Skip to content

Latest commit

 

History

History
72 lines (48 loc) · 2.41 KB

README.md

File metadata and controls

72 lines (48 loc) · 2.41 KB

Zephyr OS : Button Input Project - with Polling

This is introductory project showing the Device Tree mechanisms of Zephyr OS. This project details on how GPIO resources are mapped using Device Tree. It also provides a functional example of reading GPIO's.

We are using the STM32F3 Discovery board as a target for this project.

STM32F3 Discovery board running Zephyr OS

Scripts

This project uses the latest version of initialization and build scripts.

The process of what's done in the script is explained in the following article.

Initialization Script

cd Workspace/${ProjectDirectory}
...
./init-project

This would create the build_${ProjectDirectory} directory with Make initialized.

Note: By default the STM32F3 Discovery Board is selected. One can provide additional input to change that.

cd Workspace/${ProjectDirectory}
...
./init-project arduino_zero

The above would change the Build to arduino_zero

Build and Flash Script

cd Workspace/${ProjectDirectory}
...
./build-flash

This would use the build_${ProjectDirectory} created in the *Initialization step.

Note: By default the STM32F3 Discovery Board is selected.

Currently there is no way to change this, but we are working on that.

Further Reading

There is a complete set of tutorials to help you get started on Zephyr OS :

License

Copyright (c) 2020 Abhijit Bose https://boseji.com

SPDX-License-Identifier: Apache-2.0

All the files in this repository conform to Apache License, Version 2.0 unless otherwise specified.