Skip to content

Commit

Permalink
drivers: bmp581: Add BMP581 driver
Browse files Browse the repository at this point in the history
This commit adds source and header files required for bmp581 I2C driver.
I have used bmp581_user.h to add more usage related definitions
but bmp581.h to add hardware related definitions.

Signed-off-by: Talha Can Havadar <havadartalha@gmail.com>
Signed-off-by: Gerhard Jörges <joerges@metratec.com>
  • Loading branch information
talhaHavadar authored and MeisterBob committed Nov 17, 2023
1 parent a39d2dc commit 12dec0c
Show file tree
Hide file tree
Showing 9 changed files with 1,016 additions and 0 deletions.
1 change: 1 addition & 0 deletions drivers/sensor/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ add_subdirectory_ifdef(CONFIG_BMI270 bmi270)
add_subdirectory_ifdef(CONFIG_BMI323 bmi323)
add_subdirectory_ifdef(CONFIG_BMM150 bmm150)
add_subdirectory_ifdef(CONFIG_BMP388 bmp388)
add_subdirectory_ifdef(CONFIG_BMP581 bmp581)
add_subdirectory_ifdef(CONFIG_BQ274XX bq274xx)
add_subdirectory_ifdef(CONFIG_CCS811 ccs811)
add_subdirectory_ifdef(CONFIG_CURRENT_AMP current_amp)
Expand Down
1 change: 1 addition & 0 deletions drivers/sensor/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ source "drivers/sensor/bmi270/Kconfig"
source "drivers/sensor/bmi323/Kconfig"
source "drivers/sensor/bmm150/Kconfig"
source "drivers/sensor/bmp388/Kconfig"
source "drivers/sensor/bmp581/Kconfig"
source "drivers/sensor/bq274xx/Kconfig"
source "drivers/sensor/ccs811/Kconfig"
source "drivers/sensor/current_amp/Kconfig"
Expand Down
8 changes: 8 additions & 0 deletions drivers/sensor/bmp581/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#
# Copyright (c) 2022 Badgerd Technologies B.V and its affiliates
#
# SPDX-License-Identifier: Apache-2.0
#

zephyr_library()
zephyr_library_sources(bmp581.c)
11 changes: 11 additions & 0 deletions drivers/sensor/bmp581/Kconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#
# Copyright (c) 2022 Badgerd Technologies B.V and its affiliates
#
# SPDX-License-Identifier: Apache-2.0
#

config BMP581
bool "BMP581 barometric pressure sensor"
depends on DT_HAS_BOSCH_BMP581_ENABLED
select I2C
default y

0 comments on commit 12dec0c

Please sign in to comment.