fix examples

This commit is contained in:
jrmoulton 2024-08-13 10:39:34 -06:00
parent b4eb4a3d18
commit 50619638ee
No known key found for this signature in database
3 changed files with 4 additions and 3 deletions

View File

@ -16,7 +16,8 @@ use embassy_hal_internal::{Peripheral, PeripheralRef};
use embassy_sync::waitqueue::AtomicWaker;
#[cfg(feature = "time")]
use embassy_time::{Duration, Instant};
use mode::{Master, MasterMode};
use mode::{MasterMode};
pub use mode::{Master, MultiMaster};
use crate::dma::ChannelAndRequest;
use crate::gpio::{AnyPin, SealedPin as _};

View File

@ -23,7 +23,7 @@ const SHTC3_WAKEUP: [u8; 2] = [0x35, 0x17];
const SHTC3_MEASURE_RH_FIRST: [u8; 2] = [0x5c, 0x24];
const SHTC3_SLEEP: [u8; 2] = [0xb0, 0x98];
static I2C_BUS: StaticCell<NoopMutex<RefCell<I2c<'static, Async>>>> = StaticCell::new();
static I2C_BUS: StaticCell<NoopMutex<RefCell<I2c<'static, Async, i2c::Master>>>> = StaticCell::new();
bind_interrupts!(struct Irqs {
I2C1_EV => i2c::EventInterruptHandler<peripherals::I2C1>;

View File

@ -60,7 +60,7 @@ pub type SpeSpiCs = ExclusiveDevice<SpeSpi, Output<'static>, Delay>;
pub type SpeInt = exti::ExtiInput<'static>;
pub type SpeRst = Output<'static>;
pub type Adin1110T = ADIN1110<SpeSpiCs>;
pub type TempSensI2c = I2c<'static, Async>;
pub type TempSensI2c = I2c<'static, Async, i2c::Master>;
static TEMP: AtomicI32 = AtomicI32::new(0);