mirror of
https://github.com/rtic-rs/rtic.git
synced 2025-12-16 12:55:23 +01:00
Send-ness check is now in rtfm-core
This commit is contained in:
parent
b9f50e432e
commit
271df39bdb
3 changed files with 10 additions and 23 deletions
|
|
@ -14,7 +14,9 @@ app! {
|
|||
|
||||
tasks: {
|
||||
// ERROR this interrupt doesn't exist
|
||||
EXTI33: {},
|
||||
EXTI33: {
|
||||
path: exti33,
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
|
|
@ -23,3 +25,5 @@ fn init(_p: init::Peripherals) {}
|
|||
fn idle() -> ! {
|
||||
loop {}
|
||||
}
|
||||
|
||||
fn exti33() {}
|
||||
|
|
|
|||
|
|
@ -15,10 +15,13 @@ app! { //~ error bound `rtfm::Threshold: core::marker::Send` is not satisfied
|
|||
static TOKEN: Option<Threshold> = None;
|
||||
},
|
||||
|
||||
idle: {
|
||||
resources: [TOKEN],
|
||||
},
|
||||
|
||||
tasks: {
|
||||
EXTI0: {
|
||||
path: exti0,
|
||||
priority: 1,
|
||||
resources: [TOKEN],
|
||||
},
|
||||
}
|
||||
|
|
@ -26,7 +29,7 @@ app! { //~ error bound `rtfm::Threshold: core::marker::Send` is not satisfied
|
|||
|
||||
fn init(_p: init::Peripherals, _r: init::Resources) {}
|
||||
|
||||
fn idle() -> ! {
|
||||
fn idle(_t: &mut Threshold, _r: idle::Resources) -> ! {
|
||||
loop {}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue