aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorAdin Ackerman <[email protected]>2024-01-02 20:12:58 -0800
committerAdin Ackerman <[email protected]>2024-01-02 20:12:58 -0800
commit9b47fbeb47d30dc10e75b3c754f7e3f03ca495f5 (patch)
tree924faa6e735340ff633ab70b4e38e63920f9825b /examples
parente31dd036febea5e8b4d469003328799f7d83f7dd (diff)
weird format rule
Diffstat (limited to 'examples')
-rw-r--r--examples/stm32g0/src/bin/hf_timer.rs24
1 files changed, 9 insertions, 15 deletions
diff --git a/examples/stm32g0/src/bin/hf_timer.rs b/examples/stm32g0/src/bin/hf_timer.rs
index 475568a23..78a779e29 100644
--- a/examples/stm32g0/src/bin/hf_timer.rs
+++ b/examples/stm32g0/src/bin/hf_timer.rs
@@ -2,22 +2,16 @@
2#![no_main] 2#![no_main]
3 3
4use defmt::info; 4use defmt::info;
5use {defmt_rtt as _, panic_probe as _};
6
7use embassy_executor::Spawner; 5use embassy_executor::Spawner;
8use embassy_stm32::{ 6use embassy_stm32::gpio::OutputType;
9 gpio::OutputType, 7use embassy_stm32::pac::rcc::vals::Tim1sel;
10 pac, 8use embassy_stm32::rcc::{ClockSrc, Config as RccConfig, PllConfig, PllSource, Pllm, Plln, Pllq, Pllr};
11 pac::rcc::vals::Tim1sel, 9use embassy_stm32::time::khz;
12 rcc::{ClockSrc, Config as RccConfig, PllConfig, PllSource, Pllm, Plln, Pllq, Pllr}, 10use embassy_stm32::timer::complementary_pwm::{ComplementaryPwm, ComplementaryPwmPin};
13 time::khz, 11use embassy_stm32::timer::simple_pwm::PwmPin;
14 timer::{ 12use embassy_stm32::timer::Channel;
15 complementary_pwm::{ComplementaryPwm, ComplementaryPwmPin}, 13use embassy_stm32::{pac, Config as PeripheralConfig};
16 simple_pwm::PwmPin, 14use {defmt_rtt as _, panic_probe as _};
17 Channel,
18 },
19 Config as PeripheralConfig,
20};
21 15
22#[embassy_executor::main] 16#[embassy_executor::main]
23async fn main(_spawner: Spawner) { 17async fn main(_spawner: Spawner) {