-
Notifications
You must be signed in to change notification settings - Fork 3k
TARGET_NRF5: reworked i2c_api.c #3812
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
Conversation
@nvlsianpu @pan- @0xc0170 Could you take a look? |
@anangl Can you share the test results from CI? |
Here are the results:
|
And for NRF51:
|
nrf_delay_us(4); | ||
|
||
for (int i = 0; i < 9; i++) | ||
{ |
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.
please fix the style as it is in the rest of the code for this function
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.
Done.
Just small changes, the rest LGMT. will fire CI once addressed. Thanks for sharing the tests ! Always good to have as part of a patch! |
Just realized that CI tests have been updated since I cloned the repository. Here are the refreshed test results:
|
/morph test |
Result: SUCCESSYour command has finished executing! Here's what you wrote!
OutputAll builds and test passed! |
Description
i2c_api implementation has been changed in order to support single byte reads and writes (the latter are used in I2CEeprom module used in CI tests, and this caused that tests-i2c-api were failing). These operations (single byte transfers) are not possible to achieve with the driver from nrf5 SDK (nrf_drv_twi), so the new implementation uses TWI HAL only.
This PR addresses issue #3392, too.
Status
READY
Migrations
NO