aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--examples/late.rs4
-rw-r--r--examples/not-send.rs2
-rw-r--r--examples/not-sync.rs3
-rw-r--r--examples/shared-with-init.rs2
-rw-r--r--examples/t-late-not-send.rs2
5 files changed, 13 insertions, 0 deletions
diff --git a/examples/late.rs b/examples/late.rs
index f656efba..2b99e3dc 100644
--- a/examples/late.rs
+++ b/examples/late.rs
@@ -16,6 +16,10 @@ use panic_semihosting as _;
#[rtic::app(device = lm3s6965)]
mod app {
+ use heapless::{
+ consts::*,
+ spsc::{Consumer, Producer},
+ };
// Late resources
struct Resources {
p: Producer<'static, u32, U4>,
diff --git a/examples/not-send.rs b/examples/not-send.rs
index a2965941..c0582d76 100644
--- a/examples/not-send.rs
+++ b/examples/not-send.rs
@@ -17,6 +17,8 @@ pub struct NotSend {
#[app(device = lm3s6965)]
mod app {
+ use super::NotSend;
+
struct Resources {
#[init(None)]
shared: Option<NotSend>,
diff --git a/examples/not-sync.rs b/examples/not-sync.rs
index 74156211..28c76183 100644
--- a/examples/not-sync.rs
+++ b/examples/not-sync.rs
@@ -16,6 +16,9 @@ pub struct NotSync {
#[rtic::app(device = lm3s6965)]
mod app {
+ use super::NotSync;
+ use core::marker::PhantomData;
+
struct Resources {
#[init(NotSync { _0: PhantomData })]
shared: NotSync,
diff --git a/examples/shared-with-init.rs b/examples/shared-with-init.rs
index dcc31d3c..9c4499ee 100644
--- a/examples/shared-with-init.rs
+++ b/examples/shared-with-init.rs
@@ -14,6 +14,8 @@ pub struct MustBeSend;
#[app(device = lm3s6965)]
mod app {
+ use super::MustBeSend;
+
struct Resources {
#[init(None)]
shared: Option<MustBeSend>,
diff --git a/examples/t-late-not-send.rs b/examples/t-late-not-send.rs
index 4f6d1af7..587ee73c 100644
--- a/examples/t-late-not-send.rs
+++ b/examples/t-late-not-send.rs
@@ -13,6 +13,8 @@ pub struct NotSend {
#[rtic::app(device = lm3s6965)]
mod app {
+ use super::NotSend;
+
struct Resources {
x: NotSend,
#[init(None)]