diff options
author | 2020-10-14 20:27:43 +0200 | |
---|---|---|
committer | 2020-10-15 16:06:30 +0200 | |
commit | 48abc26e8577e6b57c46dce40e63022fac2c9375 (patch) | |
tree | 7073205b076f168b1c6f5782a278abf11eb7746f /macros/src/codegen/timer_queue.rs | |
parent | 1db5faad62c89cff19d2a94c8ce7b98bac9439ac (diff) | |
download | rtic-48abc26e8577e6b57c46dce40e63022fac2c9375.tar.gz rtic-48abc26e8577e6b57c46dce40e63022fac2c9375.tar.zst rtic-48abc26e8577e6b57c46dce40e63022fac2c9375.zip |
Detect if the rt flag is defined in the PAC/HAL
Better error message
Improved error string
Update UI tests
Diffstat (limited to 'macros/src/codegen/timer_queue.rs')
-rw-r--r-- | macros/src/codegen/timer_queue.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/macros/src/codegen/timer_queue.rs b/macros/src/codegen/timer_queue.rs index 030158e2..0abbf49d 100644 --- a/macros/src/codegen/timer_queue.rs +++ b/macros/src/codegen/timer_queue.rs @@ -72,7 +72,6 @@ pub fn codegen(app: &App, analysis: &Analysis, extra: &Extra) -> Vec<TokenStream // Timer queue handler { - let device = extra.device; let arms = timer_queue .tasks .iter() @@ -88,7 +87,7 @@ pub fn codegen(app: &App, analysis: &Analysis, extra: &Extra) -> Vec<TokenStream let pend = { quote!( - rtic::pend(#device::#enum_::#interrupt); + rtic::pend(you_must_enable_the_rt_feature_for_the_pac_in_your_cargo_toml::#enum_::#interrupt); ) }; |