drivers/lsm6dsxx: refactoring Lsm6dsl into common driver Lsm6dsxx#20170
drivers/lsm6dsxx: refactoring Lsm6dsl into common driver Lsm6dsxx#20170miri64 merged 11 commits intoRIOT-OS:masterfrom
Conversation
MrKevinWeiss
left a comment
There was a problem hiding this comment.
Hmmm I think there is a lot of code duplication here.
Maybe it would be better to just make one module lsm6dsxx and ust use PSEUDOMODULES for the specific devices.
Just browsing around I found the lpsxxx a good example.
MrKevinWeiss
left a comment
There was a problem hiding this comment.
Much better, still a few things to note, I would suggest breaking it up into the following commits:
- Rename all files and dirs
- Replace all
lsm6dslwithlsm6dsxxin the files - Add the
lsm6ds33ifdefs, register splitting, and makefile changes - Adapt the
feather-nrf52840-senseparams and add the saul device to themakefile.dep - Adapt the test
Remember to keep the credit of others and add your own.
| */ | ||
| #define LSM6DSXX_PARAM_I2C I2C_DEV(0) | ||
| #define LSM6DSXX_PARAM_ADDR (0x6A) | ||
| #define LSM6DSXX_WHO_AM_I (0b01101001) |
There was a problem hiding this comment.
I guess we don't need that now.
d8ba167 to
5ae9e1f
Compare
MrKevinWeiss
left a comment
There was a problem hiding this comment.
Still a few minor things but looking good!
MrKevinWeiss
left a comment
There was a problem hiding this comment.
Very nice, just a few more nit-picks!
975d584 to
61201b8
Compare
MrKevinWeiss
left a comment
There was a problem hiding this comment.
Look's good, I saw the tests being run, maybe it would be good to paste the logs. ACK.
|
I have added the last few fixups, please go through them and if you are happy you may squash The murdock failure looks unrelated. |
Even though it is removed just to get this through
|
hmmm something didn't work out right... I am just adding the commits directly |
51b4445 to
dcd9760
Compare
dcd9760 to
ab84f23
Compare
|
Hmmm native timer tests failing again... This PR should not touch anything in native. |
Contribution description
RIOT already offers support for the Gyro-Accelerometer sensor LSM6DSL found in the b-l475e-iot01a board. There is a very similar sensor (LSM6DS33) in the feather-nrf52840-sense board that shares its characteristics. This PR intends to merge both drivers.
Testing procedure
feather-nrf52840-sense
Input:Output:
b-l475e-iot01a
InputOutput:
Issues/PRs references