diff options
| author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2020-10-23 22:03:08 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-10-23 22:03:08 +0000 |
| commit | 4f4c95be40019f6656d4eee549932ee811a40116 (patch) | |
| tree | 092cede9ccdaa9b7a4381f7c369db79583d7eb8b /macros/src/tests | |
| parent | bbcae14e37c5f4ab5701b2a688bee52bfa7aaa1b (diff) | |
| parent | 1c244a995d54332649c1643aa0a3178f169406e4 (diff) | |
Merge #400
400: codegen and examples r=AfoHT a=perlindgren
just a test
Co-authored-by: Per Lindgren <per.lindgren@ltu.se>
Diffstat (limited to 'macros/src/tests')
| -rw-r--r-- | macros/src/tests/single.rs | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/macros/src/tests/single.rs b/macros/src/tests/single.rs index 97cbbb3..8c026e9 100644 --- a/macros/src/tests/single.rs +++ b/macros/src/tests/single.rs @@ -6,7 +6,8 @@ fn analyze() { let mut settings = Settings::default(); settings.parse_extern_interrupt = true; let (app, analysis) = rtic_syntax::parse2( - quote!(device = pac), + // First interrupt is assigned to the highest priority dispatcher + quote!(device = pac, dispatchers = [B, A]), quote!( mod app { #[task(priority = 1)] @@ -14,12 +15,6 @@ fn analyze() { #[task(priority = 2)] fn b(_: b::Context) {} - - // First interrupt is assigned to the highest priority dispatcher - extern "C" { - fn B(); - fn A(); - } } ), settings, @@ -29,6 +24,6 @@ fn analyze() { let analysis = crate::analyze::app(analysis, &app); let interrupts = &analysis.interrupts; assert_eq!(interrupts.len(), 2); - assert_eq!(interrupts[&2].to_string(), "B"); - assert_eq!(interrupts[&1].to_string(), "A"); + assert_eq!(interrupts[&2].0.to_string(), "B"); + assert_eq!(interrupts[&1].0.to_string(), "A"); } |
