diff options
Diffstat (limited to 'examples/rp/src/bin/shared_bus.rs')
| -rw-r--r-- | examples/rp/src/bin/shared_bus.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/rp/src/bin/shared_bus.rs b/examples/rp/src/bin/shared_bus.rs index dad8b812f..c6cb5d64c 100644 --- a/examples/rp/src/bin/shared_bus.rs +++ b/examples/rp/src/bin/shared_bus.rs | |||
| @@ -92,7 +92,7 @@ async fn spi_task_b(spi_bus: &'static Spi1Bus, cs: Output<'static>) { | |||
| 92 | } | 92 | } |
| 93 | } | 93 | } |
| 94 | 94 | ||
| 95 | // Dummy I2C device driver, implementing `embedded-hal-async` | 95 | // Dummy I2C device driver, using `embedded-hal-async` |
| 96 | struct DummyI2cDeviceDriver<I2C: embedded_hal_async::i2c::I2c> { | 96 | struct DummyI2cDeviceDriver<I2C: embedded_hal_async::i2c::I2c> { |
| 97 | _i2c: I2C, | 97 | _i2c: I2C, |
| 98 | } | 98 | } |
| @@ -103,7 +103,7 @@ impl<I2C: embedded_hal_async::i2c::I2c> DummyI2cDeviceDriver<I2C> { | |||
| 103 | } | 103 | } |
| 104 | } | 104 | } |
| 105 | 105 | ||
| 106 | // Dummy SPI device driver, implementing `embedded-hal-async` | 106 | // Dummy SPI device driver, using `embedded-hal-async` |
| 107 | struct DummySpiDeviceDriver<SPI: embedded_hal_async::spi::SpiDevice> { | 107 | struct DummySpiDeviceDriver<SPI: embedded_hal_async::spi::SpiDevice> { |
| 108 | _spi: SPI, | 108 | _spi: SPI, |
| 109 | } | 109 | } |
