Skip to content

Conversation

MichelRottleuthner
Copy link
Contributor

Contribution description

Analog to #8688 this updates the parameter scheme (#7519) and applies the new i2c API to the isl29125 driver.

tested with sparkfun isl29125 with nucleo-l073

Issues/PRs references

#6577

@MichelRottleuthner MichelRottleuthner added Type: cleanup The issue proposes a clean-up / The PR cleans-up parts of the codebase / documentation Area: drivers Area: Device drivers TF: I2C Marks issues and PRs related to the work of the I²C rework task force labels Jun 21, 2018
@dylad
Copy link
Member

dylad commented Jun 21, 2018

This looks good. I'm supposed to receive custom board with this sensor very soon so I'll give it a try asap unless someone is faster than me.

Copy link
Contributor

@MrKevinWeiss MrKevinWeiss left a comment

Choose a reason for hiding this comment

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

CFLAGS defines so that it keeps the same format

* @{
*/
#ifndef ISL29125_PARAM_I2C
#define ISL29125_PARAM_I2C I2C_DEV(0)
Copy link
Contributor

Choose a reason for hiding this comment

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

Probably should == TEST_ISL29125_I2C

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I removed the parameters from the tests Makefile so there is only the one definition in this file, which can still be overwritten.

#define ISL29125_PARAM_I2C I2C_DEV(0)
#endif
#ifndef ISL29125_PARAM_GPIO
#define ISL29125_PARAM_GPIO (GPIO_PIN(0, 0))
Copy link
Contributor

Choose a reason for hiding this comment

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

Same here TEST_ISL29125_IRQ_PIN

Copy link
Contributor Author

Choose a reason for hiding this comment

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

addressed: same as above

@MrKevinWeiss
Copy link
Contributor

ACK, seems good to me and appears to work!

@MrKevinWeiss MrKevinWeiss merged commit dd5cf67 into RIOT-OS:new_i2c_if Jun 27, 2018
basilfx pushed a commit to basilfx/RIOT that referenced this pull request Jul 10, 2018
…ew_i2c

drivers/isl29125: apply unified params definition scheme and new i2c API
dylad pushed a commit to dylad/RIOT that referenced this pull request Jul 10, 2018
…ew_i2c

drivers/isl29125: apply unified params definition scheme and new i2c API
dylad pushed a commit that referenced this pull request Jul 11, 2018
drivers/isl29125: apply unified params definition scheme and new i2c API
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 Type: cleanup The issue proposes a clean-up / The PR cleans-up parts of the codebase / documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants