-
Notifications
You must be signed in to change notification settings - Fork 128
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: Support I2C NG driver #353
Conversation
0bfe0da
to
a895f73
Compare
a895f73
to
27e5698
Compare
@tore-espressif PTAL |
* @param dev_addr I2C device address of sensor | ||
* | ||
* @return | ||
* - NULL Fail | ||
* - Others Success | ||
*/ | ||
#if (ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(5, 3, 0)) |
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.
I think this rule might be too limiting. The new I2C Driver-NG is available from IDFv5.2 In practice, there can be other scenarios:
- IDF v5.2 + Driver-NG
- IDF v5.3 (or later) + Legacy driver
The only rule is that the driver-ng and the legacy driver cannot be linked in the same application.
So I can see 2 options:
- Maintain two versions of this component 1.x: legacy driver, 2.x: Driver-NG
- Make this configurable through Menuconfig
ATM, option 2 seems better to me because it is aligned with linear versioning of our components and option 1 is not scalable to BSP components
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.
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.
We agreed that we will make 'big leap' and support only Driver-NG in new major versions
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.
LGTM
ESP-BSP Pull Request checklist
Change description
The first PR, how to support I2C NG driver in BSP components.