mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-04 21:24:32 +02:00
Merge branch 'contrib/github_pr_10672' into 'master'
Add maximum speed to I2C slave config in docs (GitHub PR) Closes IDFGH-9289 See merge request espressif/esp-idf!22235
This commit is contained in:
@@ -105,7 +105,8 @@ Configuration example (master):
|
|||||||
.mode = I2C_MODE_SLAVE,
|
.mode = I2C_MODE_SLAVE,
|
||||||
.slave.addr_10bit_en = 0,
|
.slave.addr_10bit_en = 0,
|
||||||
.slave.slave_addr = ESP_SLAVE_ADDR, // address of your project
|
.slave.slave_addr = ESP_SLAVE_ADDR, // address of your project
|
||||||
.clk_flags = 0,
|
.slave.maximum_speed = I2C_SLAVE_MAX_SPEED // expected maximum clock speed
|
||||||
|
.clk_flags = 0, // you can use I2C_SCLK_SRC_FLAG_* flags to choose i2c source clock here
|
||||||
};
|
};
|
||||||
|
|
||||||
At this stage, :cpp:func:`i2c_param_config` also sets a few other I2C configuration parameters to default values that are defined by the I2C specification. For more details on the values and how to modify them, see :ref:`i2c-api-customized-configuration`.
|
At this stage, :cpp:func:`i2c_param_config` also sets a few other I2C configuration parameters to default values that are defined by the I2C specification. For more details on the values and how to modify them, see :ref:`i2c-api-customized-configuration`.
|
||||||
|
Reference in New Issue
Block a user