From 323b847bf692a0054647536a6495f20373f6d9c7 Mon Sep 17 00:00:00 2001 From: Emil Fresk Date: Wed, 29 Mar 2023 20:43:27 +0200 Subject: Adding a limit that async HALs can read and have as max prio --- rtic-macros/src/codegen.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'rtic-macros/src/codegen.rs') diff --git a/rtic-macros/src/codegen.rs b/rtic-macros/src/codegen.rs index 48ee5e3..c04f213 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)* -- cgit v1.2.3