Formatting.

This commit is contained in:
Bob McWhirter 2021-08-04 11:35:18 -04:00
parent 03f15d3a60
commit 0787c8f8f5
4 changed files with 10 additions and 10 deletions

View file

@ -22,7 +22,7 @@ use embassy_stm32::Config;
fn main() -> ! { fn main() -> ! {
info!("Hello World, dude!"); info!("Hello World, dude!");
let p = embassy_stm32::init( config() ); let p = embassy_stm32::init(config());
unsafe { unsafe {
Dbgmcu::enable_all(); Dbgmcu::enable_all();
@ -62,6 +62,6 @@ fn config() -> Config {
fn rcc_config() -> rcc::Config { fn rcc_config() -> rcc::Config {
let mut config = rcc::Config::default(); let mut config = rcc::Config::default();
config.sys_ck = Some(400.mhz().into()); config.sys_ck = Some(400.mhz().into());
config.pll1.q_ck = Some( 100.mhz().into() ); config.pll1.q_ck = Some(100.mhz().into());
config config
} }

View file

@ -163,6 +163,6 @@ fn config() -> Config {
fn rcc_config() -> rcc::Config { fn rcc_config() -> rcc::Config {
let mut config = rcc::Config::default(); let mut config = rcc::Config::default();
config.sys_ck = Some(400.mhz().into()); config.sys_ck = Some(400.mhz().into());
config.pll1.q_ck = Some( 100.mhz().into() ); config.pll1.q_ck = Some(100.mhz().into());
config config
} }

View file

@ -60,7 +60,7 @@ fn main() -> ! {
Dbgmcu::enable_all(); Dbgmcu::enable_all();
} }
let p = embassy_stm32::init( config() ); let p = embassy_stm32::init(config());
let spi = spi::Spi::new( let spi = spi::Spi::new(
p.SPI3, p.SPI3,
@ -90,6 +90,6 @@ fn config() -> Config {
fn rcc_config() -> rcc::Config { fn rcc_config() -> rcc::Config {
let mut config = rcc::Config::default(); let mut config = rcc::Config::default();
config.sys_ck = Some(400.mhz().into()); config.sys_ck = Some(400.mhz().into());
config.pll1.q_ck = Some( 100.mhz().into() ); config.pll1.q_ck = Some(100.mhz().into());
config config
} }

View file

@ -56,7 +56,7 @@ fn main() -> ! {
Dbgmcu::enable_all(); Dbgmcu::enable_all();
} }
let p = embassy_stm32::init( config() ); let p = embassy_stm32::init(config());
let spi = spi::Spi::new( let spi = spi::Spi::new(
p.SPI3, p.SPI3,
@ -86,6 +86,6 @@ fn config() -> Config {
fn rcc_config() -> rcc::Config { fn rcc_config() -> rcc::Config {
let mut config = rcc::Config::default(); let mut config = rcc::Config::default();
config.sys_ck = Some(400.mhz().into()); config.sys_ck = Some(400.mhz().into());
config.pll1.q_ck = Some( 100.mhz().into() ); config.pll1.q_ck = Some(100.mhz().into());
config config
} }