mirror of
https://github.com/rtic-rs/rtic.git
synced 2025-12-18 05:45:19 +01:00
added trampoline init
This commit is contained in:
parent
13285e771c
commit
936dfc51e9
1 changed files with 13 additions and 1 deletions
|
|
@ -241,7 +241,19 @@ pub fn pre_init_enable_interrupts(app: &App, analysis: &CodegenAnalysis) -> Vec<
|
||||||
} else {
|
} else {
|
||||||
Some((&task.args.priority, &task.args.binds))
|
Some((&task.args.priority, &task.args.binds))
|
||||||
}
|
}
|
||||||
})) {
|
})).chain(app.hardware_tasks.values().filter_map(|task| {
|
||||||
|
if let Some(trampoline) = &task.args.trampoline {
|
||||||
|
if is_exception(trampoline) {
|
||||||
|
// We do exceptions in another pass
|
||||||
|
return None;
|
||||||
|
} else {
|
||||||
|
// If there's a trampoline, we need to unmask and set priority for it too
|
||||||
|
Some((&task.args.priority, trampoline))
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
None
|
||||||
|
}
|
||||||
|
})){
|
||||||
let es = format!(
|
let es = format!(
|
||||||
"Maximum priority used by interrupt vector '{name}' is more than supported by hardware"
|
"Maximum priority used by interrupt vector '{name}' is more than supported by hardware"
|
||||||
);
|
);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue