i2c: fix i2c_get_period name

rename i2s_get_period to i2c_get_period
This commit is contained in:
devsaurus 2017-01-07 13:14:40 +01:00 committed by Ivan Grokhotkov
parent a8b75ed974
commit d8fb30c930
3 changed files with 3 additions and 3 deletions

View file

@ -494,7 +494,7 @@ esp_err_t i2c_set_period(i2c_port_t i2c_num, int high_period, int low_period)
return ESP_OK; return ESP_OK;
} }
esp_err_t i2s_get_period(i2c_port_t i2c_num, int* high_period, int* low_period) esp_err_t i2c_get_period(i2c_port_t i2c_num, int* high_period, int* low_period)
{ {
I2C_CHECK(i2c_num < I2C_NUM_MAX, I2C_NUM_ERROR_STR, ESP_ERR_INVALID_ARG); I2C_CHECK(i2c_num < I2C_NUM_MAX, I2C_NUM_ERROR_STR, ESP_ERR_INVALID_ARG);
I2C_ENTER_CRITICAL(&i2c_spinlock[i2c_num]); I2C_ENTER_CRITICAL(&i2c_spinlock[i2c_num]);

View file

@ -401,7 +401,7 @@ esp_err_t i2c_set_period(i2c_port_t i2c_num, int high_period, int low_period);
* - ESP_OK Success * - ESP_OK Success
* - ESP_ERR_INVALID_ARG Parameter error * - ESP_ERR_INVALID_ARG Parameter error
*/ */
esp_err_t i2s_get_period(i2c_port_t i2c_num, int* high_period, int* low_period); esp_err_t i2c_get_period(i2c_port_t i2c_num, int* high_period, int* low_period);
/** /**
* @brief set I2C master start signal timing * @brief set I2C master start signal timing

View file

@ -68,7 +68,7 @@ Functions
.. doxygenfunction:: i2c_slave_write_buffer .. doxygenfunction:: i2c_slave_write_buffer
.. doxygenfunction:: i2c_slave_read .. doxygenfunction:: i2c_slave_read
.. doxygenfunction:: i2c_set_period .. doxygenfunction:: i2c_set_period
.. doxygenfunction:: i2s_get_period .. doxygenfunction:: i2c_get_period
.. doxygenfunction:: i2c_set_start_timing .. doxygenfunction:: i2c_set_start_timing
.. doxygenfunction:: i2c_get_start_timing .. doxygenfunction:: i2c_get_start_timing
.. doxygenfunction:: i2c_set_stop_timing .. doxygenfunction:: i2c_set_stop_timing