-
Notifications
You must be signed in to change notification settings - Fork 8.2k
Add shield iks01a3 #15425
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
Add shield iks01a3 #15425
Conversation
|
All checks are passing now. Review history of this comment for details about previous failed status. |
45ce4bb to
79149c1
Compare
|
@avisconti : I think we can remove tag "platform:STM32". This shield aims to be working on any board supporting arduino header, right? |
removed |
|
Sorry about that false positive in a comment. I really want to move ci-tools back into the main Zephyr repo. That way the whitelist could be modified in the same commit, without having to add yet another separate ad-hoc configuration file (which would have to support comments and stuff too). There will be a pylint whitelist later too. |
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 know it looks better, but if you write this as I2C throughout this document, it will show up in search results while I²C won't, and we use I2C in all our other documentation.
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.
ACK
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.
| In standard I²C mode the two bus are connected together. As a consequence, all devices on the shield | |
| In standard I²C mode the two buses are connected together. As a consequence, all devices on the shield |
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.
thx
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.
| resides on the same I²C bus and are accessible from the main board thru I²C bus. | |
| reside on the same I²C bus and are accessible from the main board thru the I²C bus. |
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.
thx
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.
Again, change all uses of I²C to 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.
This would read betters as:
More information about X-NUCLEO-IKS01A3 configuration modes can be found in the
`X-NUCLEO-IKS01A3 user manual`_.
79149c1 to
f52e419
Compare
|
@dbkinder, thx for reviewing the board doc. I have fixed all your requested changes. |
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.
LGTM, thanks
Added:
CONFIG_LSM6DSO_INT_PIN
CONFIG_PEDO_THS_MIN
CONFIG_USE_STDC_
Referenced in PR zephyrproject-rtos#14111 and PR zephyrproject-rtos#15425.
Signed-off-by: Armando Visconti <[email protected]>
f52e419 to
3c63376
Compare
01ce28e to
f7baadd
Compare
f7baadd to
ca3c2ea
Compare
|
@erwango |
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.
Need to review headers inclusion due to recent change.
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.
Should be sys/utils.h according to on recent: #16540
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.
ok, it makes sense.
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.
Done. I did it for lps22hh and lsm6dso yesterday. But I forgot to apply the same here.
Thx!
ca3c2ea to
b5d240f
Compare
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.
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.
You mean the drdy gpios? Yes, excellent idea!
I will define arduino_header for nucleo F401re and F411re for testing purpose, and I will
change this shield overlay file to make use of it.
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.
This is a little deceiving. Zephyr can certainly support multiple sensor instances, it's the specific drivers that don't actually implement multiple instances.
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.
Actually this sentence was copied@paisted from other samples:
https://docs.zephyrproject.org/latest/samples/shields/x_nucleo_iks01a1/README.html
https://docs.zephyrproject.org/latest/samples/shields/x_nucleo_iks01a2/README.html
But I can change it to "... as sensors multiple instances is not supported".
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 changed it in this way:
Please note that this sample can't be used with boards already supporting
one of the sensors available on the shield (such as disco_l475_iot1)
as sensors multiple instances are not supported.
@MaureenHelm
Pls check my english and tell me if it is better than before. Thank you.
Add arduino_header support to nucleo f401re and f411re boards. Signed-off-by: Armando Visconti <[email protected]>
x-nucleo-iks01a3 shield is an arduino compatible companion board
which can be used on top of Nucleo standard boards. It extend
the Nucleo functionalities adding following MEMS sensor support:
- LSM6DSO accel and gyro
- LIS2MDL magnetometer
- LIS2DW12 accel
- LPS22HH pressure
- HTS221 humidity
Signed-off-by: Armando Visconti <[email protected]>
b5d240f to
d764f3e
Compare
|
@MaureenHelm @erwango |
Provide two basic example samples to test the x-nucleo-iks01a3 shield:
- Standard (Mode 1)
- SensorHub (Mode 2)
Signed-off-by: Armando Visconti <[email protected]>
d764f3e to
f65c299
Compare
Added:
CONFIG_LSM6DSO_INT_PIN
CONFIG_PEDO_THS_MIN
CONFIG_USE_STDC_
Referenced in PR zephyrproject-rtos#14111 and PR zephyrproject-rtos#15425.
Signed-off-by: Armando Visconti <[email protected]>
x_nucleo_iks01a3 is a companion board that can be plugged through Arduino connectors on top
of Nucleo boards (such as nucleo_f411re).
This PR is adding shield support plus a couple of samples code, one for standard and one for sensorhub mode, plus proper documentation.
The PR is rebased on top of LPS22HH (#13062) and LSM6DSO (#13478) drivers.