diff options
| author | Emil Fresk <emil.fresk@gmail.com> | 2020-10-05 18:25:15 +0200 |
|---|---|---|
| committer | Emil Fresk <emil.fresk@gmail.com> | 2020-10-05 18:25:15 +0200 |
| commit | eec0908024d9b4127ed496b4781adc08000cc2c2 (patch) | |
| tree | f128b3d91ea4ac0f171ab334d4517552a6803d01 /examples/pool.rs | |
| parent | 9d2598dc071882a94b813ab1d9ddf49092546257 (diff) | |
| parent | f493f21359ccb3ab4643d9470f3581532f47593a (diff) | |
Merge branch 'master' into always_late_resources
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 9fccdf8..cdbabca 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) -> init::LateResources { static mut MEMORY: [u8; 512] = [0; 512]; @@ -68,4 +73,4 @@ const APP: () = { fn SSI0(); fn QEI0(); } -}; +} |
