diff options
| author | Emil Fresk <emil.fresk@gmail.com> | 2020-10-01 19:38:49 +0200 |
|---|---|---|
| committer | Emil Fresk <emil.fresk@gmail.com> | 2020-10-01 19:38:49 +0200 |
| commit | e7f0d9c3e3fad77dace2ce63af02559fda46cb73 (patch) | |
| tree | 8a6be0817178f5877e546d5e8e29ae6b7589628d /examples/pool.rs | |
| parent | 4d61437bb4debea5adc578ee072bff3619d8077b (diff) | |
Now late resources are always used
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 824d5bd..9fccdf8 100644 --- a/examples/pool.rs +++ b/examples/pool.rs @@ -20,13 +20,15 @@ pool!(P: [u8; 128]); #[app(device = lm3s6965)] const APP: () = { #[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])] |
