Crate riot_wrappers

source ·
Expand description

Safe and idiomatic Rust wrappers for RIOT-OS

See RIOT’s documentation on using Rust for a general introduction to Rust on RIOT, this crate’s README file on general concepts (such as the interaction between modules here, RIOT modules and features), and the individual modules’ documentation entries for details.

Re-exports

Modules

Macros

  • Run the function $func during auto initialization, with the priority giving the position in the initialization sequence.
  • interruptDeprecated
    Wrap a Rust interrupt handler in an extern “C” wrapper that does the post-return cleaups.
  • To have a nice Rust main function, run the riot_main! macro with the name of your main function an item (ie. top level in a module) in your crate. The function identified by it must return something that implements the Termination trait.
  • Make a function whose signature is fn(&mut Stdio, Args<'b>) -> impl Termination available through XFA in any RIOT shell, even when called throuch C. (The function’s signature may be more generic, eg. accepting an impl Write and an impl IntoIterator<&str>).

Functions

  • Name of the RIOT board that is being used