| Crates.io | ruspiro-interrupt-core |
| lib.rs | ruspiro-interrupt-core |
| version | 0.3.1 |
| created_at | 2019-08-27 12:17:50.553979+00 |
| updated_at | 2020-09-11 22:10:32.103191+00 |
| description | Interrupt core functions to globally enable/disable interrupts on Raspberry Pi |
| homepage | |
| repository | https://github.com/RusPiRo/ruspiro-interrupt/tree/v0.3.1/core |
| max_upload_size | |
| id | 160054 |
| size | 11,226 |
Core interrupt functions to globally enable/disable interrupts to be triggered on Raspberry Pi. Splitting from the
ruspiro-interrupt crate is necessary to prevent circular dependencies.
To use the crate just add the following dependency to your Cargo.toml file:
[dependencies]
ruspiro-interrupt-core = "0.3"
Once done the access to the functions to enable/disable interrupts is available in your rust files like so:
use ruspiro_interrupt_core::*;
fn demo() {
enable_interrupts();
disable_interrupts();
re_enable_interrupts();
}
Licensed under Apache License, Version 2.0, (LICENSE or http://www.apache.org/licenses/LICENSE-2.0)