diff options
author | 2020-06-11 17:18:29 +0000 | |
---|---|---|
committer | 2020-06-11 17:18:29 +0000 | |
commit | 602a5b4374961dbcf7f3290053ab9b01f0622c67 (patch) | |
tree | d3e64006a7b310d34d82df7aa2a4467c03595e55 /macros/src/codegen/hardware_tasks.rs | |
parent | 4a0393f756cc3ccd480f839eb6b6a9349326fe8e (diff) | |
download | rtic-602a5b4374961dbcf7f3290053ab9b01f0622c67.tar.gz rtic-602a5b4374961dbcf7f3290053ab9b01f0622c67.tar.zst rtic-602a5b4374961dbcf7f3290053ab9b01f0622c67.zip |
Rename RTFM to RTIC
Diffstat (limited to 'macros/src/codegen/hardware_tasks.rs')
-rw-r--r-- | macros/src/codegen/hardware_tasks.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/macros/src/codegen/hardware_tasks.rs b/macros/src/codegen/hardware_tasks.rs index a9c2a2bd..453dbccb 100644 --- a/macros/src/codegen/hardware_tasks.rs +++ b/macros/src/codegen/hardware_tasks.rs @@ -1,6 +1,6 @@ use proc_macro2::TokenStream as TokenStream2; use quote::quote; -use rtfm_syntax::{ast::App, Context}; +use rtic_syntax::{ast::App, Context}; use crate::{ analyze::Analysis, @@ -36,7 +36,7 @@ pub fn codegen( let m = extra.monotonic(); ( - Some(quote!(let instant = <#m as rtfm::Monotonic>::now();)), + Some(quote!(let instant = <#m as rtic::Monotonic>::now();)), Some(quote!(, instant)), ) } else { @@ -67,10 +67,10 @@ pub fn codegen( #let_instant - rtfm::export::run(PRIORITY, || { + rtic::export::run(PRIORITY, || { crate::#name( #locals_new - #name::Context::new(&rtfm::export::Priority::new(PRIORITY) #instant) + #name::Context::new(&rtic::export::Priority::new(PRIORITY) #instant) ) }); } @@ -121,7 +121,7 @@ pub fn codegen( #[allow(non_snake_case)] #section fn #name(#(#locals_pat,)* #context: #name::Context) { - use rtfm::Mutex as _; + use rtic::Mutex as _; #(#stmts)* } |