-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from RusPiRo/feature/split_into_core
Split core parts from interrupt crate into separate one
- Loading branch information
Showing
15 changed files
with
305 additions
and
307 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
/target | ||
**/*/target | ||
**/*.rs.bk | ||
**/release | ||
.vscode | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
[package] | ||
name = "ruspiro-interrupt" | ||
authors = ["Andre Borrmann <[email protected]>"] | ||
version = "0.2.0" # remember to update html_root_url | ||
version = "0.2.1" # remember to update html_root_url | ||
description = "Providing a simple and convinient way to implement interrupt handler for Raspberry Pi interrupts." | ||
license = "Apache-2.0" | ||
repository = "https://github.com/RusPiRo/ruspiro-interrupt/tree/v0.2.0" | ||
documentation = "https://docs.rs/ruspiro-interrupt/0.2.0" | ||
repository = "https://github.com/RusPiRo/ruspiro-interrupt/tree/v0.2.1" | ||
documentation = "https://docs.rs/ruspiro-interrupt/0.2.1" | ||
readme = "README.md" | ||
keywords = ["RusPiRo", "baremetal", "raspberrypi", "interrupt"] | ||
categories = ["no-std", "embedded"] | ||
|
@@ -15,17 +15,15 @@ edition = "2018" | |
travis-ci = { repository = "RusPiRo/ruspiro-interrupt", branch = "master" } | ||
maintenance = { status = "actively-developed" } | ||
|
||
[workspace] | ||
members = ["macros"] | ||
|
||
[lib] | ||
|
||
[dependencies] | ||
paste = "0.1.5" | ||
ruspiro-register = "0.1.1" | ||
ruspiro-interrupt-macros = { path = "./macros", version = "0.2.0" } | ||
ruspiro-singleton = "0.1.0" | ||
ruspiro-register = "0.1" | ||
ruspiro-interrupt-core = { path = "./core", version = "0.2" } | ||
ruspiro-interrupt-macros = { path = "./macros", version = "0.2" } | ||
ruspiro-singleton = "0.2" | ||
|
||
[features] | ||
default = ["ruspiro_pi3"] | ||
ruspiro_pi3 = [] | ||
ruspiro_pi3 = [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
[package] | ||
name = "ruspiro-interrupt-core" | ||
authors = ["Andre Borrmann <[email protected]>"] | ||
version = "0.2.0" # remember to update html_root_url | ||
description = "Interrupt core functions to globally enable/disable interrupts on Raspberry Pi" | ||
license = "Apache-2.0" | ||
repository = "https://github.com/RusPiRo/ruspiro-interrupt/tree/v0.2.1/core" | ||
documentation = "https://docs.rs/ruspiro-interrupt-core/0.2.0" | ||
readme = "README.md" | ||
keywords = ["RusPiRo", "baremetal", "raspberrypi", "interrupt"] | ||
categories = ["no-std", "embedded"] | ||
edition = "2018" | ||
|
||
[badges] | ||
travis-ci = { repository = "RusPiRo/ruspiro-interrupt", branch = "master" } | ||
maintenance = { status = "actively-developed" } | ||
|
||
[lib] | ||
|
||
[dependencies] | ||
|
||
[features] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# RusPiRo core interrupt crate | ||
|
||
Core interrupt functions to globally enable/disable interrupts to be triggered on Raspberry Pi. Splitting from the | ||
[``ruspiro-interrupt`` crate](https://crates.io/crates/ruspiro-interrupt) is necessary to prevent circular dependencies. | ||
|
||
[![Travis-CI Status](https://api.travis-ci.org/RusPiRo/ruspiro-interrupt.svg?branch=master)](https://travis-ci.org/RusPiRo/ruspiro-interrupt) | ||
[![Latest Version](https://img.shields.io/crates/v/ruspiro-interrupt-core.svg)](https://crates.io/crates/ruspiro-interrupt-core) | ||
[![Documentation](https://docs.rs/ruspiro-interrupt-core/badge.svg)](https://docs.rs/ruspiro-interrupt-core) | ||
[![License](https://img.shields.io/crates/l/ruspiro-interrupt-core.svg)](https://github.com/RusPiRo/ruspiro-interrupt-core#license) | ||
|
||
|
||
## Usage | ||
To use the crate just add the following dependency to your ``Cargo.toml`` file: | ||
``` | ||
[dependencies] | ||
ruspiro-interrupt-core = "0.2" | ||
``` | ||
|
||
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(); | ||
} | ||
``` | ||
|
||
## License | ||
Licensed under Apache License, Version 2.0, ([LICENSE](LICENSE) or http://www.apache.org/licenses/LICENSE-2.0) |
Oops, something went wrong.