Skip to content

Commit

Permalink
drivers: sensor: icp101xx: Add icp101xx support
Browse files Browse the repository at this point in the history
Use official TDK Invensense driver for icp101xx sensor in tdk_hal module.

Signed-off-by: Remi Buisson <[email protected]>
  • Loading branch information
rbuisson-invn committed Jan 17, 2025
1 parent 3c5c513 commit e010f41
Show file tree
Hide file tree
Showing 9 changed files with 324 additions and 352 deletions.
2 changes: 1 addition & 1 deletion drivers/sensor/tdk/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
add_subdirectory_ifdef(CONFIG_ICM42605 icm42605)
add_subdirectory_ifdef(CONFIG_ICM42670 icm42670)
add_subdirectory_ifdef(CONFIG_ICM42688 icm42688)
add_subdirectory_ifdef(CONFIG_ICP10125 icp10125)
add_subdirectory_ifdef(CONFIG_ICP101XX icp101xx)
add_subdirectory_ifdef(CONFIG_MPU6050 mpu6050)
add_subdirectory_ifdef(CONFIG_MPU9250 mpu9250)
# zephyr-keep-sorted-stop
2 changes: 1 addition & 1 deletion drivers/sensor/tdk/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
source "drivers/sensor/tdk/icm42605/Kconfig"
source "drivers/sensor/tdk/icm42670/Kconfig"
source "drivers/sensor/tdk/icm42688/Kconfig"
source "drivers/sensor/tdk/icp10125/Kconfig"
source "drivers/sensor/tdk/icp101xx/Kconfig"
source "drivers/sensor/tdk/mpu6050/Kconfig"
source "drivers/sensor/tdk/mpu9250/Kconfig"
# zephyr-keep-sorted-stop
6 changes: 0 additions & 6 deletions drivers/sensor/tdk/icp10125/CMakeLists.txt

This file was deleted.

23 changes: 0 additions & 23 deletions drivers/sensor/tdk/icp10125/Kconfig

This file was deleted.

321 changes: 0 additions & 321 deletions drivers/sensor/tdk/icp10125/icp10125.c

This file was deleted.

10 changes: 10 additions & 0 deletions drivers/sensor/tdk/icp101xx/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# SPDX-License-Identifier: Apache-2.0

zephyr_library()

if (CONFIG_CPU_HAS_FPU STREQUAL "y")
zephyr_compile_definitions(ICP101XX_DRV_USE_FLOATS)
endif()

zephyr_library_sources(icp101xx_drv.c)
zephyr_library_include_directories(.)
13 changes: 13 additions & 0 deletions drivers/sensor/tdk/icp101xx/Kconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Copyright (c) 2024 TDK Invensense

# ICP101xx High Accuracy, Low Power, Barometric Pressure and Temperature Sensor option

# SPDX-License-Identifier: Apache-2.0
config ICP101XX
bool "ICP101XX Barometric Pressure and Temperature Sensor"
default y
depends on DT_HAS_INVENSENSE_ICP101XX_ENABLED
select I2C
select USE_EMD_ICP101XX
help
Enable driver for ICP101XX barometric pressure/temperature sensor.
Loading

0 comments on commit e010f41

Please sign in to comment.