-
Notifications
You must be signed in to change notification settings - Fork 2.1k
drivers/isl29125: apply unified params definition scheme and new i2c API #9392
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
drivers/isl29125: apply unified params definition scheme and new i2c API #9392
Conversation
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. |
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.
CFLAGS defines so that it keeps the same format
* @{ | ||
*/ | ||
#ifndef ISL29125_PARAM_I2C | ||
#define ISL29125_PARAM_I2C I2C_DEV(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.
Probably should == TEST_ISL29125_I2C
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 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)) |
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.
Same here TEST_ISL29125_IRQ_PIN
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.
addressed: same as above
1d2f817
to
cd2bcf1
Compare
ACK, seems good to me and appears to work! |
…ew_i2c drivers/isl29125: apply unified params definition scheme and new i2c API
…ew_i2c drivers/isl29125: apply unified params definition scheme and new i2c API
drivers/isl29125: apply unified params definition scheme and new i2c API
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