Skip to content

Arduino package based on ZephyrRTOS (or Arduino API module for Zephyr RTOS)

Notifications You must be signed in to change notification settings

crnt/arduino-on-zephyr

 
 

Repository files navigation

About

This is a Arduino package which able to develop with Arduino API with using Zephyr RTOS as base system.

This source code can also use as a module for Zephyr.

Install

Install from ArduinoIDE

Use this additional package definition of 'Additional Boards Manager URLs' option that is on Arduino's preferences.

Use as a Zephyr Module

To use this module download(clone) zephyr source and configure west.yml. Append lines to remotes and projects section to west.yml like a below.

manifest:
  defaults:
    remote: upstream

  remotes:
    - name: upstream
      url-base: https://github.com/zephyrproject-rtos
    - name: soburi                                        # ADD
      url-base: https://github.com/soburi                 # ADD
  #
  # Please add items below based on alphabetical order
  projects:
    - name: arduino-on-zephyr                             # ADD
      revision: scirocco-0.0.20200210                     # ADD
      path: modules/lib/arduino-on-zephyr                 # ADD
      remote: soburi                                      # ADD
    - name: hal_atmel
      revision: 5a44c9d54dffd685fb6664a646922cfe41c5cf8e
      path: modules/hal/atmel
  ........ snip  ........

And run command in below to fetch modules.

west init -l zephyr
west update

See a example in https://github.com/soburi/zephyr/tree/arduino-example for using this module.

Build environment setup

Read Set Up a Development System instructions.

In summary,

  • Install OS packages and python dependencies
  • Install zephyr-sdk
  • Install west (Don't forget append .local/bin to PATH)

Limitations

This package is under EARLY develpment stage.

About

Arduino package based on ZephyrRTOS (or Arduino API module for Zephyr RTOS)

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C++ 84.6%
  • C 14.3%
  • CMake 1.1%