stm32: Update gpio examples

This commit is contained in:
Thales Fragoso
2021-06-25 17:32:24 -03:00
parent a3f0aa02a4
commit 0eaadfc125
12 changed files with 37 additions and 39 deletions

View File

@@ -9,7 +9,7 @@
#[path = "../example_common.rs"]
mod example_common;
use embassy_stm32::gpio::{Level, Output};
use embassy_stm32::gpio::{Level, Output, Speed};
use embedded_hal::digital::v2::OutputPin;
use example_common::*;
@@ -58,7 +58,7 @@ fn main() -> ! {
Config::default(),
);
let mut cs = Output::new(p.PE0, Level::High);
let mut cs = Output::new(p.PE0, Level::High, Speed::VeryHigh);
loop {
let mut buf = [0x0A; 4];