Robin Mueller
94c6d91bae
- The workspace is now a monorepo without submodules. The HAL, PAC and BSP are integrated directly - Update all dependencies: embedded-hal v1 and RTIC v2
30 lines
538 B
Rust
30 lines
538 B
Rust
//! Empty RTIC project template
|
|
#![no_main]
|
|
#![no_std]
|
|
|
|
use defmt_testapp as _;
|
|
|
|
#[rtic::app(device = pac)]
|
|
mod app {
|
|
use va108xx_hal::pac;
|
|
|
|
#[local]
|
|
struct Local {}
|
|
|
|
#[shared]
|
|
struct Shared {}
|
|
|
|
#[init]
|
|
fn init(_ctx: init::Context) -> (Shared, Local) {
|
|
defmt::println!("-- Vorago RTIC template --");
|
|
(Shared {}, Local {})
|
|
}
|
|
|
|
// `shared` cannot be accessed from this context
|
|
#[idle]
|
|
fn idle(_cx: idle::Context) -> ! {
|
|
#[allow(clippy::empty_loop)]
|
|
loop {}
|
|
}
|
|
}
|