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/post_init.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/post_init.rs')
-rw-r--r-- | macros/src/codegen/post_init.rs | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/macros/src/codegen/post_init.rs b/macros/src/codegen/post_init.rs index b816e072..0c740e85 100644 --- a/macros/src/codegen/post_init.rs +++ b/macros/src/codegen/post_init.rs @@ -1,6 +1,6 @@ use proc_macro2::TokenStream as TokenStream2; use quote::quote; -use rtfm_syntax::ast::App; +use rtic_syntax::ast::App; use crate::{analyze::Analysis, check::Extra, codegen::util}; @@ -40,7 +40,7 @@ pub fn codegen( let ib = util::init_barrier(*user); let shared = if cfg!(feature = "heterogeneous") { Some(quote!( - #[rtfm::export::shared] + #[rtic::export::shared] )) } else { None @@ -48,7 +48,7 @@ pub fn codegen( const_app.push(quote!( #shared - static #ib: rtfm::export::Barrier = rtfm::export::Barrier::new(); + static #ib: rtic::export::Barrier = rtic::export::Barrier::new(); )); stmts.push(quote!( @@ -85,7 +85,7 @@ pub fn codegen( if analysis.timer_queues.len() == 1 { // reset the monotonic timer / counter stmts.push(quote!( - <#m as rtfm::Monotonic>::reset(); + <#m as rtic::Monotonic>::reset(); )); } else { // in the multi-core case we need a rendezvous (RV) barrier between *all* the cores that @@ -102,7 +102,7 @@ pub fn codegen( let rv = util::rendezvous_ident(i); let shared = if cfg!(feature = "heterogeneous") { Some(quote!( - #[rtfm::export::shared] + #[rtic::export::shared] )) } else { None @@ -110,7 +110,7 @@ pub fn codegen( const_app.push(quote!( #shared - static #rv: rtfm::export::Barrier = rtfm::export::Barrier::new(); + static #rv: rtic::export::Barrier = rtic::export::Barrier::new(); )); // wait until all the other cores have reached the RV point @@ -130,7 +130,7 @@ pub fn codegen( core::sync::atomic::compiler_fence(core::sync::atomic::Ordering::SeqCst); // reset the counter - <#m as rtfm::Monotonic>::reset(); + <#m as rtic::Monotonic>::reset(); core::sync::atomic::compiler_fence(core::sync::atomic::Ordering::SeqCst); @@ -156,7 +156,7 @@ pub fn codegen( } // enable the interrupts -- this completes the `init`-ialization phase - stmts.push(quote!(rtfm::export::interrupt::enable();)); + stmts.push(quote!(rtic::export::interrupt::enable();)); (const_app, stmts) } |