mirror of
https://github.com/rtic-rs/rtic.git
synced 2024-11-25 21:19:35 +01:00
Fmt
This commit is contained in:
parent
1be9d0067b
commit
eb6406da7e
3 changed files with 4 additions and 5 deletions
|
@ -9,8 +9,7 @@ use panic_semihosting as _;
|
||||||
#[rtfm::app(device = lm3s6965)]
|
#[rtfm::app(device = lm3s6965)]
|
||||||
const APP: () = {
|
const APP: () = {
|
||||||
#[init]
|
#[init]
|
||||||
fn init(_: init::Context) {
|
fn init(_: init::Context) {}
|
||||||
}
|
|
||||||
|
|
||||||
#[idle]
|
#[idle]
|
||||||
fn main(_: main::Context) -> ! {
|
fn main(_: main::Context) -> ! {
|
||||||
|
|
|
@ -108,8 +108,9 @@ pub fn codegen(
|
||||||
}
|
}
|
||||||
|
|
||||||
let locals_new = locals_new.iter();
|
let locals_new = locals_new.iter();
|
||||||
let call_init =
|
let call_init = Some(
|
||||||
Some(quote!(let late = crate::#name(#(#locals_new,)* #name::Context::new(core.into()));));
|
quote!(let late = crate::#name(#(#locals_new,)* #name::Context::new(core.into()));),
|
||||||
|
);
|
||||||
|
|
||||||
root_init.push(module::codegen(Context::Init(core), needs_lt, app, extra));
|
root_init.push(module::codegen(Context::Init(core), needs_lt, app, extra));
|
||||||
|
|
||||||
|
|
|
@ -164,7 +164,6 @@ pub trait Monotonic {
|
||||||
/// A marker trait that indicates that it is correct to use this type in multi-core context
|
/// A marker trait that indicates that it is correct to use this type in multi-core context
|
||||||
pub trait MultiCore {}
|
pub trait MultiCore {}
|
||||||
|
|
||||||
|
|
||||||
/// Sets the given `interrupt` as pending
|
/// Sets the given `interrupt` as pending
|
||||||
///
|
///
|
||||||
/// This is a convenience function around
|
/// This is a convenience function around
|
||||||
|
|
Loading…
Reference in a new issue