aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--examples/baseline.rs5
-rw-r--r--examples/capacity.rs6
-rw-r--r--examples/cfg.rs7
-rw-r--r--examples/message.rs5
-rw-r--r--examples/not-send.rs7
-rw-r--r--examples/not-sync.rs5
-rw-r--r--examples/periodic.rs5
-rw-r--r--examples/pool.rs7
-rw-r--r--examples/schedule.rs5
-rw-r--r--examples/t-cfg.rs7
-rw-r--r--examples/t-schedule.rs5
-rw-r--r--examples/t-spawn.rs5
-rw-r--r--examples/t-stask-main.rs5
-rw-r--r--examples/task.rs8
-rw-r--r--examples/types.rs5
15 files changed, 65 insertions, 22 deletions
diff --git a/examples/baseline.rs b/examples/baseline.rs
index 4be8cd39..f46b273d 100644
--- a/examples/baseline.rs
+++ b/examples/baseline.rs
@@ -45,7 +45,10 @@ const APP: () = {
cx.spawn.foo().unwrap();
}
+ // RTIC requires that unused interrupts are declared in an extern block when
+ // using software tasks; these free interrupts will be used to dispatch the
+ // software tasks.
extern "C" {
- fn UART1();
+ fn SSI0();
}
};
diff --git a/examples/capacity.rs b/examples/capacity.rs
index e50f9294..00cec344 100644
--- a/examples/capacity.rs
+++ b/examples/capacity.rs
@@ -38,8 +38,10 @@ const APP: () = {
debug::exit(debug::EXIT_SUCCESS);
}
- // Interrupt handlers used to dispatch software tasks
+ // RTIC requires that unused interrupts are declared in an extern block when
+ // using software tasks; these free interrupts will be used to dispatch the
+ // software tasks.
extern "C" {
- fn UART1();
+ fn SSI0();
}
};
diff --git a/examples/cfg.rs b/examples/cfg.rs
index 534c3f80..02b39e34 100644
--- a/examples/cfg.rs
+++ b/examples/cfg.rs
@@ -57,8 +57,11 @@ const APP: () = {
.ok();
}
+ // RTIC requires that unused interrupts are declared in an extern block when
+ // using software tasks; these free interrupts will be used to dispatch the
+ // software tasks.
extern "C" {
- fn UART0();
- fn UART1();
+ fn SSI0();
+ fn QEI0();
}
};
diff --git a/examples/message.rs b/examples/message.rs
index 3fb28121..596f2449 100644
--- a/examples/message.rs
+++ b/examples/message.rs
@@ -43,7 +43,10 @@ const APP: () = {
c.spawn.foo().unwrap();
}
+ // RTIC requires that unused interrupts are declared in an extern block when
+ // using software tasks; these free interrupts will be used to dispatch the
+ // software tasks.
extern "C" {
- fn UART0();
+ fn SSI0();
}
};
diff --git a/examples/not-send.rs b/examples/not-send.rs
index fc2196c2..16a874dc 100644
--- a/examples/not-send.rs
+++ b/examples/not-send.rs
@@ -53,8 +53,11 @@ const APP: () = {
debug::exit(debug::EXIT_SUCCESS);
}
+ // RTIC requires that unused interrupts are declared in an extern block when
+ // using software tasks; these free interrupts will be used to dispatch the
+ // software tasks.
extern "C" {
- fn UART0();
- fn UART1();
+ fn SSI0();
+ fn QEI0();
}
};
diff --git a/examples/not-sync.rs b/examples/not-sync.rs
index 57b18d75..a7eaac8e 100644
--- a/examples/not-sync.rs
+++ b/examples/not-sync.rs
@@ -36,7 +36,10 @@ const APP: () = {
let _: &NotSync = c.resources.shared;
}
+ // RTIC requires that unused interrupts are declared in an extern block when
+ // using software tasks; these free interrupts will be used to dispatch the
+ // software tasks.
extern "C" {
- fn UART0();
+ fn SSI0();
}
};
diff --git a/examples/periodic.rs b/examples/periodic.rs
index f84744a2..405346e3 100644
--- a/examples/periodic.rs
+++ b/examples/periodic.rs
@@ -29,7 +29,10 @@ const APP: () = {
cx.schedule.foo(cx.scheduled + PERIOD.cycles()).unwrap();
}
+ // RTIC requires that unused interrupts are declared in an extern block when
+ // using software tasks; these free interrupts will be used to dispatch the
+ // software tasks.
extern "C" {
- fn UART0();
+ fn SSI0();
}
};
diff --git a/examples/pool.rs b/examples/pool.rs
index 38d2b6e1..824d5bd8 100644
--- a/examples/pool.rs
+++ b/examples/pool.rs
@@ -59,8 +59,11 @@ const APP: () = {
// drop(x);
}
+ // RTIC requires that unused interrupts are declared in an extern block when
+ // using software tasks; these free interrupts will be used to dispatch the
+ // software tasks.
extern "C" {
- fn UART0();
- fn UART1();
+ fn SSI0();
+ fn QEI0();
}
};
diff --git a/examples/schedule.rs b/examples/schedule.rs
index 44a56939..70a7a5e3 100644
--- a/examples/schedule.rs
+++ b/examples/schedule.rs
@@ -44,7 +44,10 @@ const APP: () = {
hprintln!("bar @ {:?}", Instant::now()).unwrap();
}
+ // RTIC requires that unused interrupts are declared in an extern block when
+ // using software tasks; these free interrupts will be used to dispatch the
+ // software tasks.
extern "C" {
- fn UART0();
+ fn SSI0();
}
};
diff --git a/examples/t-cfg.rs b/examples/t-cfg.rs
index feb71144..52e6d1c9 100644
--- a/examples/t-cfg.rs
+++ b/examples/t-cfg.rs
@@ -43,8 +43,11 @@ const APP: () = {
#[task]
fn quux(_: quux::Context) {}
+ // RTIC requires that unused interrupts are declared in an extern block when
+ // using software tasks; these free interrupts will be used to dispatch the
+ // software tasks.
extern "C" {
- fn UART0();
- fn UART1();
+ fn SSI0();
+ fn QEI0();
}
};
diff --git a/examples/t-schedule.rs b/examples/t-schedule.rs
index 67fcb749..4a231822 100644
--- a/examples/t-schedule.rs
+++ b/examples/t-schedule.rs
@@ -53,7 +53,10 @@ const APP: () = {
#[task]
fn baz(_: baz::Context, _x: u32, _y: u32) {}
+ // RTIC requires that unused interrupts are declared in an extern block when
+ // using software tasks; these free interrupts will be used to dispatch the
+ // software tasks.
extern "C" {
- fn UART1();
+ fn SSI0();
}
};
diff --git a/examples/t-spawn.rs b/examples/t-spawn.rs
index 4fc1f4e3..2d941b15 100644
--- a/examples/t-spawn.rs
+++ b/examples/t-spawn.rs
@@ -52,7 +52,10 @@ const APP: () = {
#[task]
fn baz(_: baz::Context, _x: u32, _y: u32) {}
+ // RTIC requires that unused interrupts are declared in an extern block when
+ // using software tasks; these free interrupts will be used to dispatch the
+ // software tasks.
extern "C" {
- fn UART1();
+ fn SSI0();
}
};
diff --git a/examples/t-stask-main.rs b/examples/t-stask-main.rs
index 4245ef22..f2709404 100644
--- a/examples/t-stask-main.rs
+++ b/examples/t-stask-main.rs
@@ -18,7 +18,10 @@ const APP: () = {
debug::exit(debug::EXIT_SUCCESS);
}
+ // RTIC requires that unused interrupts are declared in an extern block when
+ // using software tasks; these free interrupts will be used to dispatch the
+ // software tasks.
extern "C" {
- fn UART0();
+ fn SSI0();
}
};
diff --git a/examples/task.rs b/examples/task.rs
index 10a4dc73..12c4ac83 100644
--- a/examples/task.rs
+++ b/examples/task.rs
@@ -45,9 +45,11 @@ const APP: () = {
hprintln!("baz").unwrap();
}
- // Interrupt handlers used to dispatch software tasks
+ // RTIC requires that unused interrupts are declared in an extern block when
+ // using software tasks; these free interrupts will be used to dispatch the
+ // software tasks.
extern "C" {
- fn UART0();
- fn UART1();
+ fn SSI0();
+ fn QEI0();
}
};
diff --git a/examples/types.rs b/examples/types.rs
index 29dedaff..e14ab0c8 100644
--- a/examples/types.rs
+++ b/examples/types.rs
@@ -52,7 +52,10 @@ const APP: () = {
let _: foo::Spawn = cx.spawn;
}
+ // RTIC requires that unused interrupts are declared in an extern block when
+ // using software tasks; these free interrupts will be used to dispatch the
+ // software tasks.
extern "C" {
- fn UART1();
+ fn SSI0();
}
};