]> granicus.if.org Git - esp-idf/commitdiff
ulp: Correct misleading corrections of i2c comments
authorboarchuz <46267286+boarchuz@users.noreply.github.com>
Thu, 13 Jun 2019 20:03:56 +0000 (06:03 +1000)
committerIvan Grokhotkov <ivan@espressif.com>
Thu, 15 Aug 2019 15:34:19 +0000 (17:34 +0200)
Merges https://github.com/espressif/esp-idf/pull/3580

components/ulp/include/esp32/ulp.h

index d273565557ee14daf75832283d8e2b7097850d66..b045ccc3d9e2f0136337470b05bb2017bd943ee7 100644 (file)
@@ -1016,7 +1016,7 @@ static inline uint32_t SOC_REG_TO_ULP_PERIPH_SEL(uint32_t reg) {
  * 
  *  Slave address (in 7-bit format) has to be set in advance into SENS_I2C_SLAVE_ADDRx register field, where x == slave_sel. 
  *  For read operations, 8 bits of read result is stored into R0 register.
- *  For write operations, bits outside of val[high_bit:low_bit] are masked.
+ *  For write operations, val will be written to sub_addr at [high_bit:low_bit]. Bits outside of this range are masked.
  */
 #define I_I2C_RW(sub_addr, val, low_bit, high_bit, slave_sel, rw_bit) { .i2c = {\
         .i2c_addr = sub_addr, \