mirror of
https://github.com/rtic-rs/rtic.git
synced 2025-12-18 22:05:37 +01:00
Adding a limit that async HALs can read and have as max prio
This commit is contained in:
parent
3a0e2ac924
commit
323b847bf6
4 changed files with 32 additions and 0 deletions
|
|
@ -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)*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue