parent
a06664bd3e
commit
aaab7d87a5
6 changed files with 6 additions and 6 deletions
|
@ -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);
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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),
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue