[][src]Crate cntrlr

A library for simple asynchronous embedded programming

use cntrlr::prelude::*;
use core::futures::pending;

#[entry]
async fn main() -> ! {
   serial_1().enable(9600);
   writeln!(serial_1(), "Hello, World").await.expect("Failed to message");
   pending().await
}

For an API overview, check the prelude module. This is the core set of functionality provided by Cntrlr, and provides functionality for most applications.

For hardware-specific functionality, each supported board and microcontroller has its own module under hw. Note that there are currently both safety and ergonomics issues with these lower-level APIs, and they don't provide much more functionality than what is needed to implement the main Cntrlr API. They will be expanded as time goes on, and will be improved for correcntess and usability.

Modules

digital

Digital pin functionality for Cntrlr boards

hw

Hardware support

io

I/O functionality for Cntrlr boards

macros

Support Macros

prelude

Common functions and traits for using Cntrlr

sync

Synchronization primitives

task

Async task support for Cntrlr

time

Time functionality for Cntrlr boards