Skip to content

Zephyr OS Basic Button Input project with Polling method using STM32F3DISCOVERY Board

License

Notifications You must be signed in to change notification settings

boseji/zephyr-basic-button-poll

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.