Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ICM42670: I2C Driver-NG #404

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

tore-espressif
Copy link
Collaborator

@tore-espressif tore-espressif commented Oct 10, 2024

ESP-BSP Pull Request checklist

  • Version of modified component bumped
  • CI passing
  • Try on HW!!!

Change description

Update ICM42670 driver to I2C driver-NG

Related

@tore-espressif tore-espressif self-assigned this Oct 10, 2024
@tore-espressif tore-espressif changed the title Refactor/icm4267 i2c ng ICM4267: I2C Driver-NG Oct 10, 2024
@tore-espressif tore-espressif changed the title ICM4267: I2C Driver-NG ICM42670: I2C Driver-NG Oct 10, 2024
Copy link
Collaborator

@espzav espzav left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@tore-espressif Thank you for this PR. I tested it on ESP-BOX-3 and found some issues in test app.

static void i2c_bus_init(void)
{
const i2c_master_bus_config_t bus_config = {
.i2c_port = I2C_MASTER_NUM,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

missing:
.clk_source = I2C_CLK_SRC_DEFAULT,

esp_err_t ret;

i2c_bus_init();
ret = icm42670_create(I2C_MASTER_NUM, ICM42670_I2C_ADDRESS, &icm42670);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
ret = icm42670_create(I2C_MASTER_NUM, ICM42670_I2C_ADDRESS, &icm42670);
ret = icm42670_create(i2c_handle, ICM42670_I2C_ADDRESS, &icm42670);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants