diff options
Diffstat (limited to 'examples/pool.rs')
-rw-r--r-- | examples/pool.rs | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/examples/pool.rs b/examples/pool.rs index 824d5bd8..27408d55 100644 --- a/examples/pool.rs +++ b/examples/pool.rs @@ -18,7 +18,12 @@ use rtic::app; pool!(P: [u8; 128]); #[app(device = lm3s6965)] -const APP: () = { +mod app { + use crate::Box; + + // Import the memory pool into scope + use super::P; + #[init] fn init(_: init::Context) { static mut MEMORY: [u8; 512] = [0; 512]; @@ -66,4 +71,4 @@ const APP: () = { fn SSI0(); fn QEI0(); } -}; +} |