-
Notifications
You must be signed in to change notification settings - Fork 8k
driver: sensor: Add Omron 2SMPB-02E digital barometric pressure sensor #96284
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
base: main
Are you sure you want to change the base?
Conversation
59d124c
to
7cc7a3b
Compare
Support for the OMRON 2SMPB_02E digital barometric pressure sensor. Signed-off-by: Clément Laigle <c.laigle@catie.fr>
Added sample for the OMRON 2SMPB-02E digital barometric pressure sensor. Signed-off-by: Clément Laigle <c.laigle@catie.fr>
7cc7a3b
to
7398769
Compare
|
oki Oki Electric Industry Co., Ltd. | ||
olimex OLIMEX Ltd. | ||
olpc One Laptop Per Child | ||
omron OMRON Corporation |
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.
@nashif please help review vendor prefix
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.
looks good.
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.
We'd rather have this sensor work with a generic sensor sample than having one sample per sensor, as it wouldn't scale.
I suggest looking at other tph-related samples.
bool "OMRON 2SMPB_02E digital barometric pressure sensor" | ||
default y | ||
depends on DT_HAS_OMRON_2SMPB_02E_ENABLED | ||
select 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.
If floating-point math is unavoidable, then have the sensor select the FPU.
select I2C | |
select I2C | |
select FPU if CPU_HAS_FPU |
This pull request adds support for the Omron 2SMPB-02E digital barometric pressure sensor, including the driver and a sample application.
Omron 2SMPB-02E sensor driver integration:
drivers/sensor/omron/2smpb_02e/
, including the main driver code (2smpb_02e.c
), header (2smpb_02e.h
), Kconfig, and CMakeLists.txt.Device tree and vendor bindings:
omron,2smpb-02e.yaml
) and registered theomron
vendor prefix (vendor-prefixes.txt
).Sample application and documentation: