diff options
| author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2022-01-26 22:01:46 +0000 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-01-26 22:01:46 +0000 |
| commit | d76cd5ceaf5140c48ef97180beae156c0c0e07c8 (patch) | |
| tree | a453271d10c017854184335584188bc8709ed517 /examples/stm32l4/src/bin/i2c_blocking_async.rs | |
| parent | cd36e3f7332d08865e670ca5b515d1c6efa1bf85 (diff) | |
| parent | c8347fafb0814078466d7ed220224b9f4c7d78cf (diff) | |
Merge #592
592: Initial work on unstable-trait feature for stm32 r=lulf a=lulf
Implements async traits for exti for now.
Co-authored-by: Ulf Lilleengen <[email protected]>
Diffstat (limited to 'examples/stm32l4/src/bin/i2c_blocking_async.rs')
| -rw-r--r-- | examples/stm32l4/src/bin/i2c_blocking_async.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/stm32l4/src/bin/i2c_blocking_async.rs b/examples/stm32l4/src/bin/i2c_blocking_async.rs index 0339ed4d3..07077f9fb 100644 --- a/examples/stm32l4/src/bin/i2c_blocking_async.rs +++ b/examples/stm32l4/src/bin/i2c_blocking_async.rs | |||
| @@ -11,7 +11,8 @@ use embassy_stm32::i2c::I2c; | |||
| 11 | use embassy_stm32::interrupt; | 11 | use embassy_stm32::interrupt; |
| 12 | use embassy_stm32::time::Hertz; | 12 | use embassy_stm32::time::Hertz; |
| 13 | use embassy_stm32::Peripherals; | 13 | use embassy_stm32::Peripherals; |
| 14 | use embassy_traits::{adapter::BlockingAsync, i2c::I2c as _}; | 14 | use embassy_traits::adapter::BlockingAsync; |
| 15 | use embedded_hal_async::i2c::I2c as I2cTrait; | ||
| 15 | use example_common::{info, unwrap}; | 16 | use example_common::{info, unwrap}; |
| 16 | 17 | ||
| 17 | const ADDRESS: u8 = 0x5F; | 18 | const ADDRESS: u8 = 0x5F; |
