aboutsummaryrefslogtreecommitdiff
path: root/examples/pool.rs
diff options
context:
space:
mode:
Diffstat (limited to 'examples/pool.rs')
-rw-r--r--examples/pool.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/pool.rs b/examples/pool.rs
index db321b5..8c44cb1 100644
--- a/examples/pool.rs
+++ b/examples/pool.rs
@@ -29,8 +29,8 @@ const APP: () = {
rtfm::pend(Interrupt::I2C0);
}
- #[interrupt(priority = 2, spawn = [foo, bar])]
- fn I2C0(c: I2C0::Context) {
+ #[task(binds = I2C0, priority = 2, spawn = [foo, bar])]
+ fn i2c0(c: i2c0::Context) {
// claim a memory block, leave it uninitialized and ..
let x = P::alloc().unwrap().freeze();