Skip to content

drivers: si70xx: adapt to new I2C api.#9205

Merged
dylad merged 1 commit intoRIOT-OS:new_i2c_iffrom
basilfx:feature/i2c_drivers_si70xx
Jun 18, 2018
Merged

drivers: si70xx: adapt to new I2C api.#9205
dylad merged 1 commit intoRIOT-OS:new_i2c_iffrom
basilfx:feature/i2c_drivers_si70xx

Conversation

@basilfx
Copy link
Copy Markdown
Member

@basilfx basilfx commented May 27, 2018

Contribution description

This PR updates the Si70xx drivers. Tested this one on the SLTB001A (EFM32, adapted).

Issues/PRs references

#6577

@basilfx basilfx requested a review from dylad May 27, 2018 20:07
@basilfx basilfx added CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR TF: I2C Marks issues and PRs related to the work of the I²C rework task force labels May 27, 2018
@basilfx basilfx removed the CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR label May 31, 2018
@aabadie aabadie added the Area: drivers Area: Device drivers label Jun 3, 2018
Copy link
Copy Markdown
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.

Tested your PR (with the I2C_ACK replaced by 0) and works well on my custom board (SAML21) with the current driver I have.


i2c_acquire(SI70XX_I2C);

if (i2c_write_byte(SI70XX_I2C, SI70XX_ADDR, command) != 1) {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I2C_ACK doesn't exist anymore as we switch to errno used. This must be replaced by 0.

@basilfx basilfx force-pushed the feature/i2c_drivers_si70xx branch from 8949e4e to 6a1d9b7 Compare June 17, 2018 08:56
@basilfx
Copy link
Copy Markdown
Member Author

basilfx commented Jun 17, 2018

Rebased and adapted.

Copy link
Copy Markdown
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.

Tested work on custom hardware (based on SAML21 cpu)
ACK !
please squash

@basilfx basilfx force-pushed the feature/i2c_drivers_si70xx branch from 6a1d9b7 to a8bcc10 Compare June 18, 2018 17:15
@basilfx
Copy link
Copy Markdown
Member Author

basilfx commented Jun 18, 2018

Squashed.

@dylad
Copy link
Copy Markdown
Member

dylad commented Jun 18, 2018

Thanks for your work @basilfx ! Here we go !

@dylad dylad merged commit 0c07c74 into RIOT-OS:new_i2c_if Jun 18, 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
drivers: si70xx: adapt to new I2C api.
@basilfx basilfx deleted the feature/i2c_drivers_si70xx branch January 14, 2020 22:03
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.

4 participants