Skip to content

Conversation

vincent-d
Copy link
Member

Contribution description

Adapt adcxx1c driver to new i2c API.

Issues/PRs references

#6577

@vincent-d vincent-d added Area: drivers Area: Device drivers TF: I2C Marks issues and PRs related to the work of the I²C rework task force labels May 28, 2018
@vincent-d vincent-d requested review from aabadie and dylad June 1, 2018 15:57
@vincent-d vincent-d force-pushed the pr/adcxx1c_new_i2c branch from 404415b to 37d96d4 Compare June 1, 2018 15:58
@@ -79,7 +71,7 @@ int adcxx1c_read_raw(const adcxx1c_t *dev, int16_t *raw)
int status;

i2c_acquire(I2C);
status = i2c_read_regs(I2C, ADDR, ADCXX1C_CONV_RES_ADDR, buf, 2);
status = i2c_read_regs(I2C, ADDR, ADCXX1C_CONV_RES_ADDR, buf, 2, 0);
i2c_release(I2C);
if (status < 2) {
Copy link
Member

Choose a reason for hiding this comment

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

the function does not return the read bytes anymore, but 0 on success

@dylad
Copy link
Member

dylad commented Jul 4, 2018

@vincent-d do you think you can addressed the comments soon ?

@vincent-d vincent-d force-pushed the pr/adcxx1c_new_i2c branch from 37d96d4 to 2ad23fd Compare July 9, 2018 08:14
@vincent-d
Copy link
Member Author

Sorry for the delay, my last 2 weeks have been busy.

Comment addressed.

Copy link
Member

@dylad dylad left a comment

Choose a reason for hiding this comment

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

This looks good, if @smlng agrees, we can merge it.

@smlng
Copy link
Member

smlng commented Jul 9, 2018

please squash

@vincent-d vincent-d force-pushed the pr/adcxx1c_new_i2c branch from 2ad23fd to bcd6619 Compare July 9, 2018 09:44
@vincent-d
Copy link
Member Author

Squashed

@dylad
Copy link
Member

dylad commented Jul 9, 2018

Thanks @vincent-d !
Let's merge this one.

@dylad dylad merged commit 9a52877 into RIOT-OS:new_i2c_if Jul 9, 2018
basilfx pushed a commit to basilfx/RIOT that referenced this pull request Jul 10, 2018
dylad added a commit to dylad/RIOT that referenced this pull request Jul 10, 2018
dylad added a commit that referenced this pull request Jul 11, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: drivers Area: Device drivers TF: I2C Marks issues and PRs related to the work of the I²C rework task force
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants