mirror of
https://github.com/rtic-rs/rtic.git
synced 2024-12-24 19:09:33 +01:00
Update new example to use mod {}
This commit is contained in:
parent
5b17f8b599
commit
224e1991e0
2 changed files with 4 additions and 3 deletions
|
@ -9,7 +9,8 @@ use panic_semihosting as _;
|
|||
use rtic::cyccnt::U32Ext;
|
||||
|
||||
#[rtic::app(device = lm3s6965, monotonic = rtic::cyccnt::CYCCNT)]
|
||||
const APP: () = {
|
||||
mod app {
|
||||
|
||||
struct Resources {
|
||||
nothing: (),
|
||||
}
|
||||
|
@ -34,4 +35,4 @@ const APP: () = {
|
|||
extern "C" {
|
||||
fn SSI0();
|
||||
}
|
||||
};
|
||||
}
|
||||
|
|
|
@ -23,7 +23,7 @@ mod app {
|
|||
// The feature needs to be applied everywhere x is defined or used
|
||||
#[cfg(feature = "feature_x")]
|
||||
x: 0,
|
||||
dummy: () // dummy such that we have at least one late resource
|
||||
dummy: (), // dummy such that we have at least one late resource
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue