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 /examples | |
| parent | b4eb4a3d189efe5fe3716bb5dcd6396efcfab5c3 (diff) | |
fix examples
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/stm32h7/src/bin/i2c_shared.rs | 2 | ||||
| -rw-r--r-- | examples/stm32l4/src/bin/spe_adin1110_http_server.rs | 2 |
2 files changed, 2 insertions, 2 deletions
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 | ||
