From 1cd3ae9bd51a34a29b0d34374f8ecc08b9b830f9 Mon Sep 17 00:00:00 2001 From: Andres Oliva <andres.oliva@teufel.de> Date: Wed, 11 Oct 2023 22:20:17 +0200 Subject: [PATCH] Add comment about feature gate on I2C mod --- embassy-stm32/src/i2c/mod.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/embassy-stm32/src/i2c/mod.rs b/embassy-stm32/src/i2c/mod.rs index c35f59977..d5bb2ed21 100644 --- a/embassy-stm32/src/i2c/mod.rs +++ b/embassy-stm32/src/i2c/mod.rs @@ -2,6 +2,8 @@ use crate::interrupt; +// I2C V2 is gated on the `time` feature because timing facilities are necessary +// to provide timeout functionality in order to prevent some APIs from stalling indefinitely #[cfg_attr(i2c_v1, path = "v1.rs")] #[cfg_attr(all(i2c_v2, feature = "time"), path = "v2.rs")] mod _version;