diff options
| author | chemicstry <[email protected]> | 2022-10-24 12:34:55 +0300 |
|---|---|---|
| committer | chemicstry <[email protected]> | 2022-10-24 12:34:55 +0300 |
| commit | 5f02bee388c1754a95e5cab95338aef9c5605c9a (patch) | |
| tree | f9f247c05bdad66b66f844322016d1624c3d60d2 | |
| parent | d99841fea90caccfd95c2dad8f233ab3198f7371 (diff) | |
Gate TimeoutI2c behind i2cv1
| -rw-r--r-- | embassy-stm32/src/i2c/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/embassy-stm32/src/i2c/mod.rs b/embassy-stm32/src/i2c/mod.rs index f898fcc8b..1dffbd10a 100644 --- a/embassy-stm32/src/i2c/mod.rs +++ b/embassy-stm32/src/i2c/mod.rs | |||
| @@ -7,9 +7,9 @@ use crate::interrupt::Interrupt; | |||
| 7 | mod _version; | 7 | mod _version; |
| 8 | pub use _version::*; | 8 | pub use _version::*; |
| 9 | 9 | ||
| 10 | #[cfg(feature = "time")] | 10 | #[cfg(all(i2c_v1, feature = "time"))] |
| 11 | mod timeout; | 11 | mod timeout; |
| 12 | #[cfg(feature = "time")] | 12 | #[cfg(all(i2c_v1, feature = "time"))] |
| 13 | pub use timeout::*; | 13 | pub use timeout::*; |
| 14 | 14 | ||
| 15 | use crate::peripherals; | 15 | use crate::peripherals; |
