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§

  • auto_initriot_module_auto_init
    Run the function $func during auto initialization, with the priority giving the position in the initialization sequence.
  • 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.
  • static_commandriot_module_shell
    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>).

Constants§

  • The identifier of the RIOT board the program is being built for (RIOT_BOARD in C).

Functions§