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

UPM C Driver staging repository for Zephyr. These drivers require ZMRAA and include Zephyr examples and project configuration files.

License

Notifications You must be signed in to change notification settings

intel-iot-devkit/zupm

Repository files navigation

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.

About

UPM C Driver staging repository for Zephyr. These drivers require ZMRAA and include Zephyr examples and project configuration files.

Resources

License

Security policy

Stars

Watchers

Forks

Packages

No packages published

Languages