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.
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
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.