Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions drivers/sensors/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,14 @@ config SENSORS_BMI160

if SENSORS_BMI160

config SENSORS_BMI160_UORB
bool "BMI160 UORB Interface"
default n
select UORB
---help---
Enables Work with the UORB or Character Device interface.
If not set, the Character Device is used by default.

choice
prompt "BMI160 Interface"
default SENSORS_BMI160_SPI
Expand Down
5 changes: 5 additions & 0 deletions drivers/sensors/Make.defs
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,13 @@ ifeq ($(CONFIG_SENSORS_BMG160),y)
endif

ifeq ($(CONFIG_SENSORS_BMI160),y)
CSRCS += bmi160_base.c
ifeq ($(CONFIG_SENSORS_BMI160_UORB),y)
CSRCS += bmi160_uorb.c
else
CSRCS += bmi160.c
endif
endif

ifeq ($(CONFIG_SENSORS_BMI270),y)
CSRCS += bmi270.c
Expand Down
Loading