diff options
author | 2023-03-29 20:43:27 +0200 | |
---|---|---|
committer | 2023-03-29 20:46:24 +0200 | |
commit | 323b847bf692a0054647536a6495f20373f6d9c7 (patch) | |
tree | b5bcd9047d6feac883098ee4f85e4aced8c51a72 /rtic-macros/src/codegen.rs | |
parent | 3a0e2ac92438c818f7f12d894c576de9af9fcc01 (diff) | |
download | rtic-323b847bf692a0054647536a6495f20373f6d9c7.tar.gz rtic-323b847bf692a0054647536a6495f20373f6d9c7.tar.zst rtic-323b847bf692a0054647536a6495f20373f6d9c7.zip |
Adding a limit that async HALs can read and have as max prio
Diffstat (limited to 'rtic-macros/src/codegen.rs')
-rw-r--r-- | rtic-macros/src/codegen.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/rtic-macros/src/codegen.rs b/rtic-macros/src/codegen.rs index 48ee5e33..c04f2131 100644 --- a/rtic-macros/src/codegen.rs +++ b/rtic-macros/src/codegen.rs @@ -45,6 +45,7 @@ pub fn app(app: &App, analysis: &Analysis) -> TokenStream2 { let device = &app.args.device; let rt_err = util::rt_err_ident(); + let async_limit = bindings::async_prio_limit(app, analysis); quote!( /// The RTIC application module @@ -52,6 +53,8 @@ pub fn app(app: &App, analysis: &Analysis) -> TokenStream2 { /// Always include the device crate which contains the vector table use #device as #rt_err; + #(#async_limit)* + #(#user_imports)* #(#user_code)* |