Skip to content

Commit 7cdcaa7

Browse files
Align example to new I2c interface
1 parent 23265ea commit 7cdcaa7

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

examples/stm32g0/src/bin/usb_host_keyboard.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use defmt::*;
55
use embassy_executor::Spawner;
66
use embassy_stm32::gpio::{AfType, Level, Output, OutputType, Speed};
77
use embassy_stm32::i2c::{self, I2c};
8-
use embassy_stm32::time::{mhz, Hertz};
8+
use embassy_stm32::time::mhz;
99
use embassy_stm32::usb::UsbHost;
1010
use embassy_stm32::{bind_interrupts, pac, peripherals, usb, Config};
1111
use embassy_time::Timer;
@@ -94,7 +94,6 @@ async fn main(_spawner: Spawner) {
9494
Irqs,
9595
p.DMA1_CH1,
9696
p.DMA1_CH2,
97-
Hertz(100_000),
9897
Default::default(),
9998
);
10099

0 commit comments

Comments
 (0)