-
Notifications
You must be signed in to change notification settings - Fork 98
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
base: master
Are you sure you want to change the base?
Conversation
37fc0ac
to
c983f4d
Compare
There was a problem hiding this 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, |
There was a problem hiding this comment.
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); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ret = icm42670_create(I2C_MASTER_NUM, ICM42670_I2C_ADDRESS, &icm42670); | |
ret = icm42670_create(i2c_handle, ICM42670_I2C_ADDRESS, &icm42670); |
ESP-BSP Pull Request checklist
Change description
Update ICM42670 driver to I2C driver-NG
Related