Fix formatting

This commit is contained in:
bofh 2023-07-30 19:12:49 +02:00
parent d2127f6b82
commit 4f791799a9
5 changed files with 5 additions and 45 deletions

View File

@ -16,15 +16,7 @@ async fn main(_spawner: Spawner) {
let p = embassy_stm32::init(Default::default()); let p = embassy_stm32::init(Default::default());
info!("Hello World!"); info!("Hello World!");
let mut spi = Spi::new( let mut spi = Spi::new(p.SPI1, p.PB3, p.PB5, p.PB4, p.DMA1_CH3, p.DMA1_CH2, Config::default());
p.SPI1,
p.PB3,
p.PB5,
p.PB4,
p.DMA1_CH3,
p.DMA1_CH2,
Config::default(),
);
for n in 0u32.. { for n in 0u32.. {
let mut write: String<128> = String::new(); let mut write: String<128> = String::new();

View File

@ -16,15 +16,7 @@ async fn main(_spawner: Spawner) {
let p = embassy_stm32::init(Default::default()); let p = embassy_stm32::init(Default::default());
info!("Hello World!"); info!("Hello World!");
let mut spi = Spi::new( let mut spi = Spi::new(p.SPI1, p.PB3, p.PB5, p.PB4, p.DMA2_CH3, p.DMA2_CH2, Config::default());
p.SPI1,
p.PB3,
p.PB5,
p.PB4,
p.DMA2_CH3,
p.DMA2_CH2,
Config::default(),
);
for n in 0u32.. { for n in 0u32.. {
let mut write: String<128> = String::new(); let mut write: String<128> = String::new();

View File

@ -14,15 +14,7 @@ async fn main(_spawner: Spawner) {
let p = embassy_stm32::init(Default::default()); let p = embassy_stm32::init(Default::default());
info!("Hello World, folks!"); info!("Hello World, folks!");
let mut spi = Spi::new( let mut spi = Spi::new(p.SPI1, p.PB3, p.PA7, p.PA6, NoDma, NoDma, Config::default());
p.SPI1,
p.PB3,
p.PA7,
p.PA6,
NoDma,
NoDma,
Config::default(),
);
let mut cs = Output::new(p.PA15, Level::High, Speed::VeryHigh); let mut cs = Output::new(p.PA15, Level::High, Speed::VeryHigh);

View File

@ -14,15 +14,7 @@ async fn main(_spawner: Spawner) {
let p = embassy_stm32::init(Default::default()); let p = embassy_stm32::init(Default::default());
info!("Hello World, folks!"); info!("Hello World, folks!");
let mut spi = Spi::new( let mut spi = Spi::new(p.SPI1, p.PA5, p.PA7, p.PA6, NoDma, NoDma, Config::default());
p.SPI1,
p.PA5,
p.PA7,
p.PA6,
NoDma,
NoDma,
Config::default(),
);
let mut cs = Output::new(p.PA4, Level::High, Speed::VeryHigh); let mut cs = Output::new(p.PA4, Level::High, Speed::VeryHigh);

View File

@ -16,15 +16,7 @@ async fn main(_spawner: Spawner) {
let p = embassy_stm32::init(Default::default()); let p = embassy_stm32::init(Default::default());
info!("Hello World!"); info!("Hello World!");
let spi = Spi::new( let spi = Spi::new(p.SPI3, p.PC10, p.PC12, p.PC11, NoDma, NoDma, Config::default());
p.SPI3,
p.PC10,
p.PC12,
p.PC11,
NoDma,
NoDma,
Config::default(),
);
let mut spi = BlockingAsync::new(spi); let mut spi = BlockingAsync::new(spi);