Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Add compatibilty with rust-stable. | Brian Cully | 2019-08-06 | 1 | -1/+2 |
| | | | | | | | | | | | | | | | | | | | | | * Add feature flag for const-fn functionality, which simplifies some things and lets this crate run on architectures where atomic CAS isn't available (e.g., thumbv6). * Remove `const fn` where necessary to compile under rust-stable. * BREAKING CHANGE - Change signature of `Handler::replace` to take a mutable borrow. This is required because the underlying type is now a NonNull, which needs `mut`. The old behavior was never desired, but a consequence of trying to avoid `Option` by using a default handler. * Use lazy_static crate for initialization of Handler/HandlerArray. * Specify Sync for Handler. This is not amazing, since it isn't, but it's necessary for initialization in static contexts inside `lazy_static`. This should be fine, because any actual manipulation of the handler is done in unsafe functions. | ||||
* | WIP: Add `const-fn` feature to attempt support for stable toolchain. | Brian Cully | 2019-07-29 | 1 | -0/+1 |
| | | | | | To get this to work, either `FnMut` traits need to be allowed in `const fn` in stable, or `Handler::new` needs to be non-`const`. | ||||
* | Move cortex-m-rt into normal dev-dependencies | Brian Cully | 2019-07-09 | 1 | -3/+1 |
| | |||||
* | Add link to readme from Cargo.toml. | Brian Cully | 2019-07-09 | 1 | -0/+1 |
| | |||||
* | Update to 0.2.0: Add HandlerArray type.v0.2.0 | Brian Cully | 2019-06-03 | 1 | -1/+16 |
| | | | | | | | | | | | | | | * Create HandlerArray as a safe wrapper around Handler. * Add Cargo features for HandlerArray size. * Move Handler into sub-module. * Add CriticalSection sub-module for architecture dependent support of interrupt-free contexts. * Add build rules to pull in cortex-m support for CriticalSection automatically. | ||||
* | Working handler code.v0.1.0 | Brian Cully | 2019-05-10 | 1 | -0/+17 |