mirror of
https://github.com/rtic-rs/rtic.git
synced 2024-12-27 04:19:33 +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) {}
|
||
|
}
|