critical sections: each task gets its own context

Fixing what was probably a copy-paste error; different tasks each have different types for their context argument.
This commit is contained in:
chrysn 2019-10-10 16:42:26 +02:00 committed by GitHub
parent 38306389ea
commit bbd47e20ee
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;