Formatting.
This commit is contained in:
parent
03f15d3a60
commit
0787c8f8f5
@ -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
|
||||||
}
|
}
|
@ -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
|
||||||
}
|
}
|
@ -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
|
||||||
}
|
}
|
@ -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
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user