Răsfoiți Sursa

Add note about DWT cycle counter being requried for i2c

TheZoq2 3 ani în urmă
părinte
comite
7f33ced95f
1 a modificat fișierele cu 3 adăugiri și 0 ștergeri
  1. 3 0
      src/i2c.rs

+ 3 - 0
src/i2c.rs

@@ -98,6 +98,9 @@ pub struct I2c<I2C, PINS> {
 }
 
 /// embedded-hal compatible blocking I2C implementation
+///
+/// **NOTE**: Before using blocking I2C, you need to enable the DWT cycle counter using the
+/// [DWT::enable_cycle_counter] method.
 pub struct BlockingI2c<I2C, PINS> {
     nb: I2c<I2C, PINS>,
     start_timeout: u32,