Merge branch 'feature/i2c_clk_stretch' into 'master'

feature(i2c): add i2c clock stretch

See merge request sdk/ESP8266_RTOS_SDK!916
This commit is contained in:
Wu Jian Gang
2019-08-26 14:08:25 +08:00
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 */