Skip to content
This repository has been archived by the owner on Jan 3, 2023. It is now read-only.

Latest commit

 

History

History
103 lines (84 loc) · 3.29 KB

README.md

File metadata and controls

103 lines (84 loc) · 3.29 KB

DISCONTINUATION OF PROJECT

This project will no longer be maintained by Intel. Intel has ceased development and contributions including, but not limited to, maintenance, bug fixes, new releases, or updates, to this project. Intel no longer accepts patches to this project.

Synopsis

ZUPM is a UPM C source repo for use with the Zephyr Project.

Requirements

Releases

Installation (clone from zephyr/zmraa/zupm and patch)

Clone Zephyr Kernel (requires corresponding Zephyr SDK)

git clone https://github.com/zephyrproject-rtos/zephyr.git && cd zephyr && git checkout tags/v1.7.0

export ZEPHYR_GCC_VARIANT=zephyr
export ZEPHYR_SDK_INSTALL_DIR=<path to your sdk installation directory>
source zephyr-env.sh

Clone ZMRAA

git clone https://github.com/intel-iot-devkit/zmraa.git $ZEPHYR_BASE/ext/lib/mraa

Clone ZUPM

git clone https://github.com/intel-iot-devkit/zupm.git $ZEPHYR_BASE/ext/lib/upm

Setup Kbuild to include MRAA and UPM, link UPM examples to Zephry samples

cd $ZEPHYR_BASE
patch -p1 < $ZEPHYR_BASE/ext/lib/mraa/install.patch
patch -p1 < $ZEPHYR_BASE/ext/lib/upm/install.patch
ln -s $ZEPHYR_BASE/ext/lib/upm/samples/upm $ZEPHYR_BASE/samples/
NOTE: ZUPM HAS A HARD DEPENDENCY ON ZMRAA. PLEASE CLONE AND PATCH ZMRAA FIRST AND THEN PROCEED TO ZUPM.

Code Examples

AIO:

# DFRobot pH Sensor
cd $ZEPHYR_BASE/samples/upm/dfrph
make BOARD=arduino_101_sss

SPI:

# Onboard Accel, Gyro, Magno
cd $ZEPHYR_BASE/samples/upm/bmi160
make BOARD=arduino_101_sss

I2C:

# LCD display
cd $ZEPHYR_BASE/samples/upm/jhd1313m1
make BOARD=arduino_101_sss

GPIO - Onboard LED (BOARD=arduino_101):

# Onboard LED (pin 13)
cd $ZEPHYR_BASE/samples/upm/led
make BOARD=arduino_101

Flash the target. After resetting the target, the onboard LED should flash.

GPIO - Onboard LED (BOARD=quark_d2000_crb):

# Onboard LED (pin 9)
cd $ZEPHYR_BASE/samples/upm/led
make BOARD=quark_d2000_crb

Flash the target. After resetting the target, the onboard LED should flash.

GPIO - Onboard LED (BOARD=quark_se_c1000_devboard):

# Onboard LED (pin 64)
cd $ZEPHYR_BASE/samples/upm/led
make BOARD=quark_se_c1000_devboard

Flash the target

make BOARD=quark_se_c1000_devboard flash

After resetting the target, the onboard LED should flash.