
CYW954907AEVAL1F Evaluation Kit User Guide, Doc. No. 002-22338 Rev. **
45
5.
Code Examples
This chapter demonstrates the functionality of CYW54907 devices using the CYW954907AEVAL1F
EVK code examples. Download and extract the zip file from the CYW954907AEVAL1F EVK web
page as specified in
Software Installation
section. The code examples once un-zipped can be
viewed in WICED Studio 6.0 (or later). In addition to the added examples there are already many
apps (snip.gpio, test.console, and so on) that are available in WICED Studio 6.0.
5.1
Using Code Examples
Code examples already added can be compiled after creating Make Targets. Refer to
Building and
Programming a Project for CYW954907AEVAL1F in WICED Studio IDE
for the process of creating
targets.
Create the following three Make Targets in WICED Studio 6.0 (or later):
■
“snip.gpio-CYW954907AEVAL1F download run"
for the gpio example which is already
present in WICED Studio.
■
“kits.CYW954907AEVAL1F.config_join_ping-CYW954907AEVAL1F download run"
for the config_join_ping project.
■
“kits.CYW954907AEVAL1F.publish_subscribe_aws-CYW954907AEVAL1F download
run"
for the aws publish and subscribe project.
■
“kits.CYW954907AEVAL1F.adc_measure-CYW954907AEVAL1F download run"
for the
adc_measure project.
5.2
GPIO
5.2.1
Project Description
The
gpio
project demonstrates toggling of LEDs and turning them off when one of the User
switches is pressed.
The
gpio
project consists of the following files:
■
gpio.c
: This file contains the main application function
application_start()
which is the entry
point and execution of the firmware application.
■
gpio.mk
: This is the makefile which adds the source of the application.
5.2.2
Hardware Connections
No specific hardware connections are required for this project because all connections are hard-
wired on the CYW954907AEVAL1F EVK.