2022-12-31 14:45:13 +01:00
|
|
|
#![no_main]
|
|
|
|
|
|
|
|
#[rtic_macros::mock_app(device = mock)]
|
|
|
|
mod app {
|
|
|
|
#[idle]
|
|
|
|
fn foo(_: foo::Context) -> ! {
|
|
|
|
loop {}
|
|
|
|
}
|
|
|
|
|
|
|
|
// name collides with `#[idle]` function
|
|
|
|
#[task]
|
2023-01-08 16:25:46 +01:00
|
|
|
async fn foo(_: foo::Context) {}
|
2022-12-31 14:45:13 +01:00
|
|
|
}
|