aboutsummaryrefslogtreecommitdiff
path: root/examples/pool.rs
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2020-10-05 18:26:00 +0000
committerGitHub <noreply@github.com>2020-10-05 18:26:00 +0000
commit12aa9807c4883e1c8b3f226acea3a6aa5e886989 (patch)
tree4febd53f9ba370a40e3ee0f3630a3542d1be4964 /examples/pool.rs
parentf493f21359ccb3ab4643d9470f3581532f47593a (diff)
parent8ab7be98714d1ef6298e6feb19f16b84cd9bb4e6 (diff)
Merge #372
372: Now late resources are always used r=AfoHT a=korken89 Awaits the PR in `rtic-syntax`: https://github.com/rtic-rs/rtic-syntax/pull/32 Co-authored-by: Emil Fresk <emil.fresk@gmail.com>
Diffstat (limited to 'examples/pool.rs')
-rw-r--r--examples/pool.rs4
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])]