mirror of
https://github.com/rtic-rs/rtic.git
synced 2024-11-23 20:22:51 +01:00
Fix CI error caused by critical-section
0.2.8
This commit is contained in:
parent
9afb1f888f
commit
d6edeb6a64
3 changed files with 17 additions and 1 deletions
|
@ -70,3 +70,10 @@ overflow-checks = false
|
||||||
|
|
||||||
[patch.crates-io]
|
[patch.crates-io]
|
||||||
lm3s6965 = { git = "https://github.com/japaric/lm3s6965" }
|
lm3s6965 = { git = "https://github.com/japaric/lm3s6965" }
|
||||||
|
|
||||||
|
[features]
|
||||||
|
test-critical-section = ["cortex-m/critical-section-single-core"]
|
||||||
|
|
||||||
|
[[example]]
|
||||||
|
name = "pool"
|
||||||
|
required-features = ["test-critical-section"]
|
||||||
|
|
|
@ -147,6 +147,7 @@ pub fn codegen(
|
||||||
None
|
None
|
||||||
}
|
}
|
||||||
})) {
|
})) {
|
||||||
|
#[allow(clippy::or_fun_call)]
|
||||||
let v = prio_to_masks.entry(priority - 1).or_insert(Vec::new());
|
let v = prio_to_masks.entry(priority - 1).or_insert(Vec::new());
|
||||||
v.push(quote!(#device::Interrupt::#name as u32));
|
v.push(quote!(#device::Interrupt::#name as u32));
|
||||||
mask_ids.push(quote!(#device::Interrupt::#name as u32));
|
mask_ids.push(quote!(#device::Interrupt::#name as u32));
|
||||||
|
|
|
@ -46,7 +46,15 @@ impl<'a> CargoCommand<'a> {
|
||||||
features,
|
features,
|
||||||
mode,
|
mode,
|
||||||
} => {
|
} => {
|
||||||
let mut args = vec![self.name(), "--example", example, "--target", target];
|
let mut args = vec![
|
||||||
|
self.name(),
|
||||||
|
"--example",
|
||||||
|
example,
|
||||||
|
"--target",
|
||||||
|
target,
|
||||||
|
"--features",
|
||||||
|
"test-critical-section",
|
||||||
|
];
|
||||||
|
|
||||||
if let Some(feature_name) = features {
|
if let Some(feature_name) = features {
|
||||||
args.extend_from_slice(&["--features", feature_name]);
|
args.extend_from_slice(&["--features", feature_name]);
|
||||||
|
|
Loading…
Reference in a new issue