Revert "Update init use"

This reverts commit a06664bd3e.
This commit is contained in:
Ulf Lilleengen 2021-05-26 20:42:11 +02:00
parent a06664bd3e
commit aaab7d87a5
6 changed files with 6 additions and 6 deletions

View File

@ -38,7 +38,7 @@ fn main() -> ! {
w
});
let (p, _) = embassy_stm32::init(Default::default());
let p = embassy_stm32::init(Default::default());
let mut led = Output::new(p.PB7, Level::High);

View File

@ -38,7 +38,7 @@ fn main() -> ! {
w
});
let (p, _) = embassy_stm32::init(Default::default());
let p = embassy_stm32::init(Default::default());
let button = Input::new(p.PC13, Pull::Down);
let mut led1 = Output::new(p.PB0, Level::High);

View File

@ -21,7 +21,7 @@ use stm32f4::stm32f429 as pac;
#[embassy::task]
async fn main_task() {
let (p, _) = embassy_stm32::init(Default::default());
let p = embassy_stm32::init(Default::default());
let button = Input::new(p.PC13, Pull::Down);
let mut button = ExtiInput::new(button, p.EXTI13);

View File

@ -47,7 +47,7 @@ fn main() -> ! {
w
});
let (p, _) = embassy_stm32::init(Default::default());
let p = embassy_stm32::init(Default::default());
let mut spi = Spi::new(
Hertz(16_000_000),

View File

@ -20,7 +20,7 @@ use stm32f4::stm32f429 as pac;
#[embassy::task]
async fn main_task() {
let (p, _) = embassy_stm32::init(Default::default());
let p = embassy_stm32::init(Default::default());
let config = Config::default();
let mut usart = Uart::new(p.USART3, p.PD9, p.PD8, config, 16_000_000);

View File

@ -20,7 +20,7 @@ use stm32f4::stm32f429 as pac;
#[embassy::task]
async fn main_task() {
let (mut p, _) = embassy_stm32::init(Default::default());
let mut p = embassy_stm32::init(Default::default());
let config = Config::default();
let mut usart = Uart::new(p.USART3, p.PD9, p.PD8, config, 16_000_000);