aboutsummaryrefslogtreecommitdiff
path: root/examples/stm32f2/src/bin/pll.rs
diff options
context:
space:
mode:
authorDario Nieuwenhuis <[email protected]>2022-06-12 22:15:44 +0200
committerDario Nieuwenhuis <[email protected]>2022-06-12 22:22:31 +0200
commita8703b75988e1e700af701116464025679d2feb8 (patch)
treef4ec5de70ec05e793a774049e010935ac45853ed /examples/stm32f2/src/bin/pll.rs
parent6199bdea710cde33e5d5381b6d6abfc8af46df19 (diff)
Run rustfmt.
Diffstat (limited to 'examples/stm32f2/src/bin/pll.rs')
-rw-r--r--examples/stm32f2/src/bin/pll.rs16
1 files changed, 6 insertions, 10 deletions
diff --git a/examples/stm32f2/src/bin/pll.rs b/examples/stm32f2/src/bin/pll.rs
index 4bd74f0bd..b09d64b0b 100644
--- a/examples/stm32f2/src/bin/pll.rs
+++ b/examples/stm32f2/src/bin/pll.rs
@@ -3,20 +3,16 @@
3#![feature(type_alias_impl_trait)] 3#![feature(type_alias_impl_trait)]
4 4
5use core::convert::TryFrom; 5use core::convert::TryFrom;
6
6use defmt::*; 7use defmt::*;
7use embassy::executor::Spawner; 8use embassy::executor::Spawner;
8use embassy::time::{Duration, Timer}; 9use embassy::time::{Duration, Timer};
9use embassy_stm32::{ 10use embassy_stm32::rcc::{
10 rcc::{ 11 APBPrescaler, ClockSrc, HSEConfig, HSESrc, PLL48Div, PLLConfig, PLLMainDiv, PLLMul, PLLPreDiv, PLLSrc,
11 APBPrescaler, ClockSrc, HSEConfig, HSESrc, PLL48Div, PLLConfig, PLLMainDiv, PLLMul,
12 PLLPreDiv, PLLSrc,
13 },
14 time::Hertz,
15 Config, Peripherals,
16}; 12};
17 13use embassy_stm32::time::Hertz;
18use defmt_rtt as _; // global logger 14use embassy_stm32::{Config, Peripherals};
19use panic_probe as _; 15use {defmt_rtt as _, panic_probe as _};
20 16
21// Example config for maximum performance on a NUCLEO-F207ZG board 17// Example config for maximum performance on a NUCLEO-F207ZG board
22fn config() -> Config { 18fn config() -> Config {