mirror of
https://github.com/rtic-rs/rtic.git
synced 2024-11-27 22:15:07 +01:00
Merge #252
252: critical sections book: each task gets its own context r=japaric a=chrysn Fixing what was probably a copy-paste error; different tasks each have different types for their context. Co-authored-by: chrysn <chrysn@fsfe.org>
This commit is contained in:
commit
8a1f009c34
1 changed files with 1 additions and 1 deletions
|
@ -50,7 +50,7 @@ const APP: () = {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[interrupt(binds = UART1, priority = 2, resources = [x])]
|
#[interrupt(binds = UART1, priority = 2, resources = [x])]
|
||||||
fn bar(c: foo::Context) {
|
fn bar(c: bar::Context) {
|
||||||
let mut x: &mut u64 = c.resources.x;
|
let mut x: &mut u64 = c.resources.x;
|
||||||
|
|
||||||
*x += 1;
|
*x += 1;
|
||||||
|
|
Loading…
Reference in a new issue