diff options
| author | jrmoulton <[email protected]> | 2024-08-13 10:39:34 -0600 |
|---|---|---|
| committer | jrmoulton <[email protected]> | 2024-08-13 10:41:53 -0600 |
| commit | 50619638ee5c71110430420a04d1b3113eb91945 (patch) | |
| tree | 6342169b23ad695c97050b8508091857690f43eb | |
| parent | b4eb4a3d189efe5fe3716bb5dcd6396efcfab5c3 (diff) | |
fix examples
| -rw-r--r-- | embassy-stm32/src/i2c/mod.rs | 3 | ||||
| -rw-r--r-- | examples/stm32h7/src/bin/i2c_shared.rs | 2 | ||||
| -rw-r--r-- | examples/stm32l4/src/bin/spe_adin1110_http_server.rs | 2 |
3 files changed, 4 insertions, 3 deletions
diff --git a/embassy-stm32/src/i2c/mod.rs b/embassy-stm32/src/i2c/mod.rs index 6f952b8f8..c1911cd06 100644 --- a/embassy-stm32/src/i2c/mod.rs +++ b/embassy-stm32/src/i2c/mod.rs | |||
| @@ -16,7 +16,8 @@ use embassy_hal_internal::{Peripheral, PeripheralRef}; | |||
| 16 | use embassy_sync::waitqueue::AtomicWaker; | 16 | use embassy_sync::waitqueue::AtomicWaker; |
| 17 | #[cfg(feature = "time")] | 17 | #[cfg(feature = "time")] |
| 18 | use embassy_time::{Duration, Instant}; | 18 | use embassy_time::{Duration, Instant}; |
| 19 | use mode::{Master, MasterMode}; | 19 | use mode::{MasterMode}; |
| 20 | pub use mode::{Master, MultiMaster}; | ||
| 20 | 21 | ||
| 21 | use crate::dma::ChannelAndRequest; | 22 | use crate::dma::ChannelAndRequest; |
| 22 | use crate::gpio::{AnyPin, SealedPin as _}; | 23 | use crate::gpio::{AnyPin, SealedPin as _}; |
diff --git a/examples/stm32h7/src/bin/i2c_shared.rs b/examples/stm32h7/src/bin/i2c_shared.rs index 6f4815582..321b35a3e 100644 --- a/examples/stm32h7/src/bin/i2c_shared.rs +++ b/examples/stm32h7/src/bin/i2c_shared.rs | |||
| @@ -23,7 +23,7 @@ const SHTC3_WAKEUP: [u8; 2] = [0x35, 0x17]; | |||
| 23 | const SHTC3_MEASURE_RH_FIRST: [u8; 2] = [0x5c, 0x24]; | 23 | const SHTC3_MEASURE_RH_FIRST: [u8; 2] = [0x5c, 0x24]; |
| 24 | const SHTC3_SLEEP: [u8; 2] = [0xb0, 0x98]; | 24 | const SHTC3_SLEEP: [u8; 2] = [0xb0, 0x98]; |
| 25 | 25 | ||
| 26 | static I2C_BUS: StaticCell<NoopMutex<RefCell<I2c<'static, Async>>>> = StaticCell::new(); | 26 | static I2C_BUS: StaticCell<NoopMutex<RefCell<I2c<'static, Async, i2c::Master>>>> = StaticCell::new(); |
| 27 | 27 | ||
| 28 | bind_interrupts!(struct Irqs { | 28 | bind_interrupts!(struct Irqs { |
| 29 | I2C1_EV => i2c::EventInterruptHandler<peripherals::I2C1>; | 29 | I2C1_EV => i2c::EventInterruptHandler<peripherals::I2C1>; |
diff --git a/examples/stm32l4/src/bin/spe_adin1110_http_server.rs b/examples/stm32l4/src/bin/spe_adin1110_http_server.rs index bd633cecb..8f23e4083 100644 --- a/examples/stm32l4/src/bin/spe_adin1110_http_server.rs +++ b/examples/stm32l4/src/bin/spe_adin1110_http_server.rs | |||
| @@ -60,7 +60,7 @@ pub type SpeSpiCs = ExclusiveDevice<SpeSpi, Output<'static>, Delay>; | |||
| 60 | pub type SpeInt = exti::ExtiInput<'static>; | 60 | pub type SpeInt = exti::ExtiInput<'static>; |
| 61 | pub type SpeRst = Output<'static>; | 61 | pub type SpeRst = Output<'static>; |
| 62 | pub type Adin1110T = ADIN1110<SpeSpiCs>; | 62 | pub type Adin1110T = ADIN1110<SpeSpiCs>; |
| 63 | pub type TempSensI2c = I2c<'static, Async>; | 63 | pub type TempSensI2c = I2c<'static, Async, i2c::Master>; |
| 64 | 64 | ||
| 65 | static TEMP: AtomicI32 = AtomicI32::new(0); | 65 | static TEMP: AtomicI32 = AtomicI32::new(0); |
| 66 | 66 | ||
