mirror of
https://github.com/rtic-rs/rtic.git
synced 2025-12-19 06:15:45 +01:00
GHA update
Fmt fixes Spawn_after did not work with parameters Examples working again Revert "GHA update" This reverts commit e0a71d4859966a6c5cf2629d3cb27e88acada9c0. Readd flags Only add DWT based dep with __v7 flag
This commit is contained in:
parent
670cdb92d3
commit
cd3484cbab
8 changed files with 143 additions and 70 deletions
|
|
@ -116,7 +116,10 @@ pub fn app(app: &App, analysis: &Analysis, extra: &Extra) -> TokenStream2 {
|
|||
let ty = &monotonic.ty;
|
||||
let mangled_name = util::mangle_monotonic_type(&name_str);
|
||||
let ident = util::monotonic_ident(&name_str);
|
||||
let panic_str = &format!("Use of monotonic '{}' before it was passed to the runtime", name_str);
|
||||
let panic_str = &format!(
|
||||
"Use of monotonic '{}' before it was passed to the runtime",
|
||||
name_str
|
||||
);
|
||||
|
||||
quote! {
|
||||
pub use rtic::Monotonic as _;
|
||||
|
|
|
|||
|
|
@ -263,7 +263,7 @@ pub fn codegen(
|
|||
pub mod #m {
|
||||
#(#cfgs)*
|
||||
pub fn spawn_after<D>(
|
||||
duration: D,
|
||||
duration: D
|
||||
#(,#args)*
|
||||
) -> Result<(), #ty>
|
||||
where D: rtic::time::duration::Duration + rtic::time::fixed_point::FixedPoint,
|
||||
|
|
@ -276,7 +276,7 @@ pub fn codegen(
|
|||
#app_path::#m::now()
|
||||
};
|
||||
|
||||
spawn_at(instant + duration, #(,#untupled)*)
|
||||
spawn_at(instant + duration #(,#untupled)*)
|
||||
}
|
||||
|
||||
#(#cfgs)*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue