mirror of
https://github.com/rtic-rs/rtic.git
synced 2025-12-17 21:35:20 +01:00
refactor Resource / Threshold into its own crate, drop task!, tweak rtfm::atomic
task! can be re-added in a backward compatible fashion and I'd like to not have two ways to assign a task handler to an interrupt / exception in the first release. rtfm::atomic now uses the `Threshold` token instead of the `CriticalSection` token. This reduces overhead by dropping the "are interrupts enabled?" check.
This commit is contained in:
parent
dee2fcde71
commit
0b5afce771
3 changed files with 47 additions and 154 deletions
|
|
@ -15,6 +15,7 @@ version = "0.2.0"
|
|||
[dependencies]
|
||||
cortex-m = "0.3.1"
|
||||
static-ref = "0.2.1"
|
||||
rtfm-core = { git = "https://github.com/japaric/rtfm-core" }
|
||||
|
||||
[dependencies.cortex-m-rtfm-macros]
|
||||
path = "macros"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue