aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib.rs
blob: 8e16b263d98f4f1fda6560f4b2b46c0e0c923173 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
//! CLosure INTerrupt handlers
//!
//! Use closures as interrupt service routines to leverage Rust's
//! borrow checker for safe, exclusive usage of device peripherals and
//! other data without locking.
//!
//! # Layout
//!
//! See [`array`'s module documentation](table/index.html#examples) for basic,
//! safe usage.
//!
//! The [`handler`](handler) module contains the underyling, unsafe
//! implementation.
//!
//! Critical section support is supplied by the [`cs` module](cs).

#![no_std]
#![feature(const_fn)]

pub mod array;
pub mod cs;
pub mod handler;

pub use array::HandlerArray;
pub use handler::Handler;