diff options
| author | Emil Fresk <emil.fresk@gmail.com> | 2020-10-08 17:33:42 +0200 |
|---|---|---|
| committer | Emil Fresk <emil.fresk@gmail.com> | 2020-10-08 17:33:42 +0200 |
| commit | c83b15b643346c54f09ef130b5abd5ca31abfcd5 (patch) | |
| tree | b1b350b834c243e05f4328d1b4922f1d9e0f373c /examples/pool.rs | |
| parent | e8b4fa7b32cf044428971f22e01428ff9cccff3c (diff) | |
| parent | 36781cdd890752d6876623d8802b860e950b24eb (diff) | |
Merge branch 'master' into spawn_experiment
Diffstat (limited to 'examples/pool.rs')
| -rw-r--r-- | examples/pool.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/pool.rs b/examples/pool.rs index 27408d5..cdbabca 100644 --- a/examples/pool.rs +++ b/examples/pool.rs @@ -25,13 +25,15 @@ mod app { use super::P; #[init] - fn init(_: init::Context) { + fn init(_: init::Context) -> init::LateResources { static mut MEMORY: [u8; 512] = [0; 512]; // Increase the capacity of the memory pool by ~4 P::grow(MEMORY); rtic::pend(Interrupt::I2C0); + + init::LateResources {} } #[task(binds = I2C0, priority = 2, spawn = [foo, bar])] |
