Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
  • Loading branch information
bugadani committed Sep 16, 2024
1 parent 8f9656b commit 300f88d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 16 deletions.
5 changes: 1 addition & 4 deletions examples/src/bin/embassy_multicore.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,7 @@ async fn main(_spawner: Spawner) {
let io = Io::new(peripherals.GPIO, peripherals.IO_MUX);

let timg0 = TimerGroup::new(peripherals.TIMG0);
esp_hal_embassy::init([
timg0.timer0.degrade(),
timg0.timer1.degrade(),
]);
esp_hal_embassy::init([timg0.timer0.degrade(), timg0.timer1.degrade()]);

let mut cpu_control = CpuControl::new(peripherals.CPU_CTRL);

Expand Down
5 changes: 1 addition & 4 deletions examples/src/bin/embassy_multicore_interrupt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,7 @@ fn main() -> ! {
let io = Io::new(peripherals.GPIO, peripherals.IO_MUX);

let timg0 = TimerGroup::new(peripherals.TIMG0);
esp_hal_embassy::init([
timg0.timer0.degrade(),
timg0.timer1.degrade(),
]);
esp_hal_embassy::init([timg0.timer0.degrade(), timg0.timer1.degrade()]);

let mut cpu_control = CpuControl::new(peripherals.CPU_CTRL);

Expand Down
5 changes: 1 addition & 4 deletions examples/src/bin/embassy_multiprio.rs
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,7 @@ async fn main(low_prio_spawner: Spawner) {
}
}

esp_hal_embassy::init([
timg0.timer0.degrade(),
timer1.degrade(),
]);
esp_hal_embassy::init([timg0.timer0.degrade(), timer1.degrade()]);

static EXECUTOR: StaticCell<InterruptExecutor<2>> = StaticCell::new();
let executor = InterruptExecutor::new(sw_ints.software_interrupt2);
Expand Down
5 changes: 1 addition & 4 deletions hil-test/tests/embassy_timers_executors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -218,10 +218,7 @@ mod test {
let timg0 = TimerGroup::new(peripherals.TIMG0);
let systimer = SystemTimer::new(peripherals.SYSTIMER).split::<Target>();

esp_hal_embassy::init([
timg0.timer0.degrade(),
systimer.alarm0.degrade(),
]);
esp_hal_embassy::init([timg0.timer0.degrade(), systimer.alarm0.degrade()]);

let sw_ints = SoftwareInterruptControl::new(peripherals.SW_INTERRUPT);

Expand Down

0 comments on commit 300f88d

Please sign in to comment.