aboutsummaryrefslogtreecommitdiff
path: root/macros/src/codegen/pre_init.rs
diff options
context:
space:
mode:
authorGravatar Emil Fresk <emil.fresk@gmail.com> 2020-10-15 17:55:00 +0200
committerGravatar Emil Fresk <emil.fresk@gmail.com> 2020-10-15 17:55:00 +0200
commit5ac16f6aae7c4760711b1eef5cbaf1c57c5933ca (patch)
treead2e1b0ac81f3ffebe73edcf62b8cc4472eaff13 /macros/src/codegen/pre_init.rs
parent5b8e6a22ab68e316e11641dedf5b39e20878c7b7 (diff)
parentee0885063d5b1cc4eddd3918ff425796f6213464 (diff)
downloadrtic-5ac16f6aae7c4760711b1eef5cbaf1c57c5933ca.tar.gz
rtic-5ac16f6aae7c4760711b1eef5cbaf1c57c5933ca.tar.zst
rtic-5ac16f6aae7c4760711b1eef5cbaf1c57c5933ca.zip
Merge branch 'master' into spawn_experiment
Diffstat (limited to 'macros/src/codegen/pre_init.rs')
-rw-r--r--macros/src/codegen/pre_init.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/macros/src/codegen/pre_init.rs b/macros/src/codegen/pre_init.rs
index 02afdf95..17c9c2f4 100644
--- a/macros/src/codegen/pre_init.rs
+++ b/macros/src/codegen/pre_init.rs
@@ -49,14 +49,14 @@ pub fn codegen(app: &App, analysis: &Analysis, extra: &Extra) -> Vec<TokenStream
let interrupt = util::interrupt_ident();
stmts.push(quote!(
core.NVIC.set_priority(
- #device::#interrupt::#name,
+ you_must_enable_the_rt_feature_for_the_pac_in_your_cargo_toml::#interrupt::#name,
rtic::export::logical2hw(#priority, #nvic_prio_bits),
);
));
// NOTE unmask the interrupt *after* setting its priority: changing the priority of a pended
// interrupt is implementation defined
- stmts.push(quote!(rtic::export::NVIC::unmask(#device::#interrupt::#name);));
+ stmts.push(quote!(rtic::export::NVIC::unmask(you_must_enable_the_rt_feature_for_the_pac_in_your_cargo_toml::#interrupt::#name);));
}
// Set exception priorities