mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
change(ulp): change some hal(ll) function name to new ones
This commit is contained in:
parent
d9d1c87e56
commit
262dac9c4d
@ -58,7 +58,7 @@ static void lp_core_i2c_format_cmd(uint32_t cmd_idx, uint8_t op_code, uint8_t ac
|
|||||||
};
|
};
|
||||||
|
|
||||||
/* Write new command to cmd register */
|
/* Write new command to cmd register */
|
||||||
i2c_ll_write_cmd_reg(dev, hw_cmd, cmd_idx);
|
i2c_ll_master_write_cmd_reg(dev, hw_cmd, cmd_idx);
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline esp_err_t lp_core_i2c_wait_for_interrupt(uint32_t intr_mask, int32_t ticks_to_wait)
|
static inline esp_err_t lp_core_i2c_wait_for_interrupt(uint32_t intr_mask, int32_t ticks_to_wait)
|
||||||
@ -210,7 +210,7 @@ esp_err_t lp_core_i2c_master_read_from_device(i2c_port_t lp_i2c_num, uint16_t de
|
|||||||
|
|
||||||
/* Initiate I2C transfer */
|
/* Initiate I2C transfer */
|
||||||
i2c_ll_update(dev);
|
i2c_ll_update(dev);
|
||||||
i2c_ll_trans_start(dev);
|
i2c_ll_master_trans_start(dev);
|
||||||
|
|
||||||
/* Wait for the transfer to complete */
|
/* Wait for the transfer to complete */
|
||||||
ret = lp_core_i2c_wait_for_interrupt(intr_mask, ticks_to_wait);
|
ret = lp_core_i2c_wait_for_interrupt(intr_mask, ticks_to_wait);
|
||||||
@ -301,7 +301,7 @@ esp_err_t lp_core_i2c_master_write_to_device(i2c_port_t lp_i2c_num, uint16_t dev
|
|||||||
|
|
||||||
/* Initiate I2C transfer */
|
/* Initiate I2C transfer */
|
||||||
i2c_ll_update(dev);
|
i2c_ll_update(dev);
|
||||||
i2c_ll_trans_start(dev);
|
i2c_ll_master_trans_start(dev);
|
||||||
|
|
||||||
/* Wait for the transfer to complete */
|
/* Wait for the transfer to complete */
|
||||||
ret = lp_core_i2c_wait_for_interrupt(intr_mask, ticks_to_wait);
|
ret = lp_core_i2c_wait_for_interrupt(intr_mask, ticks_to_wait);
|
||||||
@ -388,7 +388,7 @@ esp_err_t lp_core_i2c_master_write_read_device(i2c_port_t lp_i2c_num, uint16_t d
|
|||||||
|
|
||||||
/* Initiate I2C transfer */
|
/* Initiate I2C transfer */
|
||||||
i2c_ll_update(dev);
|
i2c_ll_update(dev);
|
||||||
i2c_ll_trans_start(dev);
|
i2c_ll_master_trans_start(dev);
|
||||||
|
|
||||||
/* Wait for the transfer to complete */
|
/* Wait for the transfer to complete */
|
||||||
ret = lp_core_i2c_wait_for_interrupt(intr_mask, ticks_to_wait);
|
ret = lp_core_i2c_wait_for_interrupt(intr_mask, ticks_to_wait);
|
||||||
@ -457,7 +457,7 @@ esp_err_t lp_core_i2c_master_write_read_device(i2c_port_t lp_i2c_num, uint16_t d
|
|||||||
|
|
||||||
/* Initiate I2C transfer */
|
/* Initiate I2C transfer */
|
||||||
i2c_ll_update(dev);
|
i2c_ll_update(dev);
|
||||||
i2c_ll_trans_start(dev);
|
i2c_ll_master_trans_start(dev);
|
||||||
|
|
||||||
/* Wait for the transfer to complete */
|
/* Wait for the transfer to complete */
|
||||||
ret = lp_core_i2c_wait_for_interrupt(intr_mask, ticks_to_wait);
|
ret = lp_core_i2c_wait_for_interrupt(intr_mask, ticks_to_wait);
|
||||||
|
@ -141,7 +141,7 @@ esp_err_t lp_core_i2c_master_init(i2c_port_t lp_i2c_num, const lp_core_i2c_cfg_t
|
|||||||
ESP_RETURN_ON_ERROR(lp_i2c_config_clk(cfg), LPI2C_TAG, "Failed to configure LP I2C source clock");
|
ESP_RETURN_ON_ERROR(lp_i2c_config_clk(cfg), LPI2C_TAG, "Failed to configure LP I2C source clock");
|
||||||
|
|
||||||
/* Enable SDA and SCL filtering. This configuration matches the HP I2C filter config */
|
/* Enable SDA and SCL filtering. This configuration matches the HP I2C filter config */
|
||||||
i2c_ll_set_filter(i2c_hal.dev, LP_I2C_FILTER_CYC_NUM_DEF);
|
i2c_ll_master_set_filter(i2c_hal.dev, LP_I2C_FILTER_CYC_NUM_DEF);
|
||||||
|
|
||||||
/* Configure the I2C master to send a NACK when the Rx FIFO count is full */
|
/* Configure the I2C master to send a NACK when the Rx FIFO count is full */
|
||||||
i2c_ll_master_rx_full_ack_level(i2c_hal.dev, 1);
|
i2c_ll_master_rx_full_ack_level(i2c_hal.dev, 1);
|
||||||
|
Loading…
Reference in New Issue
Block a user