Update init use

This commit is contained in:
Ulf Lilleengen 2021-05-26 20:12:54 +02:00
parent f960f5b105
commit a06664bd3e
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);