va108xx-rs/examples/rtic/src/bin/rtic-empty.rs
Robin Mueller 29e16304e0
Some checks failed
Rust/va108xx-rs/pipeline/head There was a failure building this commit
update package
- Add embassy example
- improve timer API
- restructure examples
2024-09-18 16:01:59 +02:00

31 lines
617 B
Rust

//! Empty RTIC project template
#![no_main]
#![no_std]
#[rtic::app(device = pac)]
mod app {
use panic_rtt_target as _;
use rtt_target::{rprintln, rtt_init_default};
use va108xx_hal::pac;
#[local]
struct Local {}
#[shared]
struct Shared {}
#[init]
fn init(_ctx: init::Context) -> (Shared, Local) {
rtt_init_default!();
rprintln!("-- Vorago RTIC template --");
(Shared {}, Local {})
}
// `shared` cannot be accessed from this context
#[idle]
fn idle(_cx: idle::Context) -> ! {
#[allow(clippy::empty_loop)]
loop {}
}
}