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

Latest commit

 

History

History
39 lines (29 loc) · 1.34 KB

README.md

File metadata and controls

39 lines (29 loc) · 1.34 KB

Rust bindings for mynewt

This repo contains some rust bindings for the mynewt api. It contains two crates:

  • mynewt-sys contains the raw rust bindings
  • mynewt contains safe wrappers for the mynewt packages

Both crates only build the bindings for the enabled mynewt packages.

Status

Incomplete. I will add new APIs when I need them. Feel free to send a pull request.

The bindgen code expects some environment variables that are provided by the master branch of newt builder. See https://github.com/caspermeijn/mynewt-newt/blob/master/INSTALLING.md

Usage

First you need to add the mynewt crate as an dependency of your rust application. Then you can use the correct BSP module for obtaining the peripherals.