aboutsummaryrefslogtreecommitdiff
path: root/macros/src/codegen/util.rs
diff options
context:
space:
mode:
authorGravatar Henrik Tjäder <henrik@tjaders.com> 2020-06-11 17:18:29 +0000
committerGravatar Henrik Tjäder <henrik@tjaders.com> 2020-06-11 17:18:29 +0000
commit602a5b4374961dbcf7f3290053ab9b01f0622c67 (patch)
treed3e64006a7b310d34d82df7aa2a4467c03595e55 /macros/src/codegen/util.rs
parent4a0393f756cc3ccd480f839eb6b6a9349326fe8e (diff)
downloadrtic-602a5b4374961dbcf7f3290053ab9b01f0622c67.tar.gz
rtic-602a5b4374961dbcf7f3290053ab9b01f0622c67.tar.zst
rtic-602a5b4374961dbcf7f3290053ab9b01f0622c67.zip
Rename RTFM to RTIC
Diffstat (limited to 'macros/src/codegen/util.rs')
-rw-r--r--macros/src/codegen/util.rs16
1 files changed, 8 insertions, 8 deletions
diff --git a/macros/src/codegen/util.rs b/macros/src/codegen/util.rs
index 207272dc..68aca5d1 100644
--- a/macros/src/codegen/util.rs
+++ b/macros/src/codegen/util.rs
@@ -2,7 +2,7 @@ use core::sync::atomic::{AtomicUsize, Ordering};
use proc_macro2::{Span, TokenStream as TokenStream2};
use quote::quote;
-use rtfm_syntax::{ast::App, Context, Core};
+use rtic_syntax::{ast::App, Context, Core};
use syn::{Attribute, Ident, LitInt, PatType};
use crate::check::Extra;
@@ -22,7 +22,7 @@ pub fn capacity_typenum(capacity: u8, round_up_to_power_of_two: bool) -> TokenSt
let ident = Ident::new(&format!("U{}", capacity), Span::call_site());
- quote!(rtfm::export::consts::#ident)
+ quote!(rtic::export::consts::#ident)
}
/// Generates a `#[cfg(core = "0")]` attribute if we are in multi-core mode
@@ -69,7 +69,7 @@ pub fn impl_mutex(
quote!(
#(#cfgs)*
#cfg_core
- impl<'a> rtfm::Mutex for #path<'a> {
+ impl<'a> rtic::Mutex for #path<'a> {
type T = #ty;
#[inline(always)]
@@ -78,7 +78,7 @@ pub fn impl_mutex(
const CEILING: u8 = #ceiling;
unsafe {
- rtfm::export::lock(
+ rtic::export::lock(
#ptr,
#priority,
CEILING,
@@ -143,7 +143,7 @@ fn link_section_index() -> usize {
pub fn link_section(section: &str, core: Core) -> Option<TokenStream2> {
if cfg!(feature = "homogeneous") {
- let section = format!(".{}_{}.rtfm{}", section, core, link_section_index());
+ let section = format!(".{}_{}.rtic{}", section, core, link_section_index());
Some(quote!(#[link_section = #section]))
} else {
None
@@ -156,9 +156,9 @@ pub fn link_section_uninit(core: Option<Core>) -> Option<TokenStream2> {
let index = link_section_index();
if cfg!(feature = "homogeneous") {
- format!(".uninit_{}.rtfm{}", core, index)
+ format!(".uninit_{}.rtic{}", core, index)
} else {
- format!(".uninit.rtfm{}", index)
+ format!(".uninit.rtic{}", index)
}
} else {
if cfg!(feature = "heterogeneous") {
@@ -166,7 +166,7 @@ pub fn link_section_uninit(core: Option<Core>) -> Option<TokenStream2> {
return None;
}
- format!(".uninit.rtfm{}", link_section_index())
+ format!(".uninit.rtic{}", link_section_index())
};
Some(quote!(#[link_section = #section]))