zephyr/drivers/sensor/tdk/icm42670/Kconfig
Lucas Tamborrino ca31dbc0bc drivers: sensor: icm42670: Add I2C bus support
Add bus interface so the driver can support both
SPI and I2C bus.

Signed-off-by: Lucas Tamborrino <lucas.tamborrino@espressif.com>
2024-08-16 14:08:44 -04:00

58 lines
1.3 KiB
Plaintext

# ICM42670 Six-Axis Motion Tracking device configuration options
#
# Copyright (c) 2022 Esco Medical ApS
# Copyright (c) 2020 TDK Invensense
#
# SPDX-License-Identifier: Apache-2.0
menuconfig ICM42670
bool "ICM42670 Six-Axis Motion Tracking Device"
default y
depends on DT_HAS_INVENSENSE_ICM42670_ENABLED
select SPI if $(dt_compat_on_bus,$(DT_COMPAT_INVENSENSE_ICM42670),spi)
select I2C if $(dt_compat_on_bus,$(DT_COMPAT_INVENSENSE_ICM42670),i2c)
help
Enable driver for ICM42670 SPI-based six-axis motion tracking device.
if ICM42670
choice ICM42670_TRIGGER_MODE
prompt "Trigger mode"
default ICM42670_TRIGGER_NONE
help
Specify the type of triggering to be used by the driver.
config ICM42670_TRIGGER_NONE
bool "No trigger"
config ICM42670_TRIGGER_GLOBAL_THREAD
bool "Use global thread"
depends on GPIO
select ICM42670_TRIGGER
config ICM42670_TRIGGER_OWN_THREAD
bool "Use own thread"
depends on GPIO
select ICM42670_TRIGGER
endchoice
config ICM42670_TRIGGER
bool
config ICM42670_THREAD_PRIORITY
int "Thread priority"
depends on ICM42670_TRIGGER_OWN_THREAD
default 10
help
Priority of thread used by the driver to handle interrupts.
config ICM42670_THREAD_STACK_SIZE
int "Thread stack size"
depends on ICM42670_TRIGGER_OWN_THREAD
default 1024
help
Stack size of thread used by the driver to handle interrupts.
endif # ICM42670