feature(i2c): add i2c clock stretch

This commit is contained in:
XiongYu
2019-04-24 15:35:34 +08:00
parent fbe9c0b857
commit d673e2836a
3 changed files with 15 additions and 6 deletions

View File

@ -64,6 +64,7 @@ typedef struct {
gpio_pullup_t sda_pullup_en; /*!< Internal GPIO pull mode for I2C sda signal*/
gpio_num_t scl_io_num; /*!< GPIO number for I2C scl signal */
gpio_pullup_t scl_pullup_en; /*!< Internal GPIO pull mode for I2C scl signal*/
uint32_t clk_stretch_tick; /*!< Clock Stretch time, depending on CPU frequency*/
} i2c_config_t;
typedef void *i2c_cmd_handle_t; /*!< I2C command handle */