#micro-controller #interface #layer #bindings #teensy #teensyduino #teensy3-sys

nightly teensy3

Rust interface layer for the Teensy 3.1/3.2 microcontroller

5 releases

Uses old Rust 2015

0.2.0 Apr 17, 2017
0.1.3 Oct 16, 2016
0.1.2 Sep 26, 2016
0.1.1 Sep 26, 2016
0.1.0 Sep 26, 2016

#1634 in Hardware support

MIT license

7KB
193 lines

Rust on Teensy3

  • teensy3: Crates.io
  • teensy3-sys: Crates.io

Documentation

This is a repo for development on the Teensy3 in Rust. This repo is bootstrapped with Teensyduino bindings, generated by rust-bindgen.

Getting Started

This crate is meant to be consumed by a binary for a PJRC Teensy 3.1 or 3.2. Support for Teensy 3.0, 3.5, and 3.6 boards is planned, but not implemented.

To use this crate, please see this demo repo which can be used as a template for your project.

Package layout

  • teensy3-sys - This crate contains the C/C++ code and the Rust bindings against them. All items are generally unsafe, and not idiomatic rust.
  • teensy3 - This crate contains any ergonomic wrappers around teensy3-sys components, as well as any pure rust reimplementations of other components. teensy3-sys is re-exported as teensy3::bindings.

Dependencies

Thanks, Citiations

This code is nearly entirely thanks to these resources:

License

Rust contributions are licensed under the MIT License.

Please Note: ASM, C, C++, and Linker Components of the teensy3-sys crate (a dependency of the teensy3 crate) contain components licensed under the MIT License, PJRC's modified MIT License, and the LGPL v2.1. Please refer to individual components for more details.


lib.rs:

Convenience library for Rust development on a Teensy 3.x.

Contains safe and unsafe utilities, bootstrapped by the C++ Teensyduino libraries provided by the manufacturer

Dependencies