Add comment about feature gate on I2C mod

This commit is contained in:
Andres Oliva 2023-10-11 22:20:17 +02:00
parent bfcca79c1e
commit 1cd3ae9bd5

View File

@ -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;