mirror of
https://github.com/rtic-rs/rtic.git
synced 2024-11-27 14:04:56 +01:00
cargo fmt
This commit is contained in:
parent
7fdf16eab9
commit
efca108103
2 changed files with 4 additions and 8 deletions
|
@ -10,8 +10,8 @@
|
||||||
extern crate cortex_m_rtfm as rtfm;
|
extern crate cortex_m_rtfm as rtfm;
|
||||||
extern crate stm32f103xx;
|
extern crate stm32f103xx;
|
||||||
|
|
||||||
use stm32f103xx::Interrupt;
|
|
||||||
use rtfm::{app, Resource, Threshold};
|
use rtfm::{app, Resource, Threshold};
|
||||||
|
use stm32f103xx::Interrupt;
|
||||||
|
|
||||||
app! {
|
app! {
|
||||||
device: stm32f103xx,
|
device: stm32f103xx,
|
||||||
|
@ -60,10 +60,7 @@ fn idle() -> ! {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[allow(non_snake_case)]
|
#[allow(non_snake_case)]
|
||||||
fn exti0(
|
fn exti0(t: &mut Threshold, EXTI0::Resources { mut LOW, mut HIGH }: EXTI0::Resources) {
|
||||||
t: &mut Threshold,
|
|
||||||
EXTI0::Resources { mut LOW, mut HIGH }: EXTI0::Resources,
|
|
||||||
) {
|
|
||||||
// Because this task has a priority of 1 the preemption threshold `t` also
|
// Because this task has a priority of 1 the preemption threshold `t` also
|
||||||
// starts at 1
|
// starts at 1
|
||||||
|
|
||||||
|
|
|
@ -10,9 +10,8 @@ fn cfail() {
|
||||||
let mut config = Config::default();
|
let mut config = Config::default();
|
||||||
config.mode = Mode::CompileFail;
|
config.mode = Mode::CompileFail;
|
||||||
config.src_base = PathBuf::from(format!("tests/cfail"));
|
config.src_base = PathBuf::from(format!("tests/cfail"));
|
||||||
config.target_rustcflags = Some(
|
config.target_rustcflags =
|
||||||
"-C panic=abort -L target/debug -L target/debug/deps ".to_string(),
|
Some("-C panic=abort -L target/debug -L target/debug/deps ".to_string());
|
||||||
);
|
|
||||||
|
|
||||||
compiletest::run_tests(&config);
|
compiletest::run_tests(&config);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue