mirror of
https://github.com/rtic-rs/rtic.git
synced 2024-11-23 20:22:51 +01:00
14 lines
223 B
Rust
14 lines
223 B
Rust
|
#![no_main]
|
||
|
|
||
|
#[rtic_macros::mock_app(device = mock)]
|
||
|
mod app {
|
||
|
#[idle]
|
||
|
fn foo(_: foo::Context) -> ! {
|
||
|
loop {}
|
||
|
}
|
||
|
|
||
|
// name collides with `#[idle]` function
|
||
|
#[task]
|
||
|
fn foo(_: foo::Context) {}
|
||
|
}
|