#[mock::app(parse_binds, dispatchers = [UART1])]
mod app {
use crate::{bar, foo};
#[shared]
struct Shared {
a: u32,
}
#[local]
struct Local {}
#[init]
fn init(_: init::Context) -> (Shared, Local, init::Monotonics) {}
#[idle]
fn idle(_: idle::Context) -> ! {}
extern "Rust" {
#[task(shared = [a], priority = 2)]
fn foo(_: foo::Context, _: u32);
#[task(binds = UART0, shared = [a], priority = 2)]
fn bar(_: bar::Context);
}
}