diff options
author | 2021-05-06 19:40:37 +0200 | |
---|---|---|
committer | 2021-05-06 19:40:37 +0200 | |
commit | b4509bdbfe7cd5accf4c6b791a18ca55183a4993 (patch) | |
tree | 77d5cf702a9be6afa123844af07f316338527714 /macros/src/codegen/pre_init.rs | |
parent | aad8f81991c3495f225df80d7c8456faecd40728 (diff) | |
download | rtic-b4509bdbfe7cd5accf4c6b791a18ca55183a4993.tar.gz rtic-b4509bdbfe7cd5accf4c6b791a18ca55183a4993.tar.zst rtic-b4509bdbfe7cd5accf4c6b791a18ca55183a4993.zip |
Flattened the _ out of it
Diffstat (limited to 'macros/src/codegen/pre_init.rs')
-rw-r--r-- | macros/src/codegen/pre_init.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/macros/src/codegen/pre_init.rs b/macros/src/codegen/pre_init.rs index 3a62da50..531debac 100644 --- a/macros/src/codegen/pre_init.rs +++ b/macros/src/codegen/pre_init.rs @@ -93,8 +93,6 @@ pub fn codegen(app: &App, analysis: &Analysis, extra: &Extra) -> Vec<TokenStream // Compile time assert that this priority is supported by the device stmts.push(quote!(let _ = [(); ((1 << #nvic_prio_bits) - #priority as usize)];)); - let app_name = &app.name; - let app_path = quote! {crate::#app_name}; let mono_type = &monotonic.ty; if &*binds.to_string() == "SysTick" { @@ -121,7 +119,7 @@ pub fn codegen(app: &App, analysis: &Analysis, extra: &Extra) -> Vec<TokenStream // Always enable monotonic interrupts if they should never be off if !<#mono_type as rtic::Monotonic>::DISABLE_INTERRUPT_ON_EMPTY_QUEUE { - rtic::export::NVIC::unmask(#app_path::#rt_err::#interrupt::#binds); + rtic::export::NVIC::unmask(#rt_err::#interrupt::#binds); } )); } |