Skip to content

Commit 7f33ced

Browse files
committed
Add note about DWT cycle counter being requried for i2c
1 parent 68fd3d6 commit 7f33ced

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/i2c.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,9 @@ pub struct I2c<I2C, PINS> {
9898
}
9999

100100
/// embedded-hal compatible blocking I2C implementation
101+
///
102+
/// **NOTE**: Before using blocking I2C, you need to enable the DWT cycle counter using the
103+
/// [DWT::enable_cycle_counter] method.
101104
pub struct BlockingI2c<I2C, PINS> {
102105
nb: I2c<I2C, PINS>,
103106
start_timeout: u32,

0 commit comments

Comments
 (0)