mirror of
https://github.com/rtic-rs/rtic.git
synced 2025-12-20 06:45:36 +01:00
change tasks! syntax to resemble struct initialization
This commit is contained in:
parent
62356da0be
commit
39c111a59a
7 changed files with 40 additions and 8 deletions
|
|
@ -9,7 +9,11 @@ use rtfm::{C1, P0, P1};
|
|||
use device::interrupt::Exti0;
|
||||
|
||||
tasks!(device, {
|
||||
j1: (Exti0, P1),
|
||||
j1: Task {
|
||||
interrupt: Exti0,
|
||||
priority: P1,
|
||||
enabled: true,
|
||||
},
|
||||
});
|
||||
|
||||
// WRONG. `init` must have signature `fn(P0, &C16)`
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue