mirror of
https://github.com/apache/nuttx.git
synced 2026-08-08 22:17:18 +00:00
driver/sensors/: BMI270 fix compilation if sensor works in SPI mode
This commit is contained in:
parent
4645004d49
commit
e83fd87f9c
1 changed files with 4 additions and 4 deletions
|
|
@ -56,6 +56,10 @@ ifeq ($(CONFIG_SENSORS_DHTXX),y)
|
|||
CSRCS += dhtxx.c
|
||||
endif
|
||||
|
||||
ifeq ($(CONFIG_SENSORS_BMI270),y)
|
||||
CSRCS += bmi270.c
|
||||
endif
|
||||
|
||||
# These drivers depend on I2C support
|
||||
|
||||
ifeq ($(CONFIG_I2C),y)
|
||||
|
|
@ -145,10 +149,6 @@ else
|
|||
endif
|
||||
endif
|
||||
|
||||
ifeq ($(CONFIG_SENSORS_BMI270),y)
|
||||
CSRCS += bmi270.c
|
||||
endif
|
||||
|
||||
ifeq ($(CONFIG_SENSORS_BMP180),y)
|
||||
CSRCS += bmp180_base.c
|
||||
ifeq ($(CONFIG_SENSORS_BMP180_UORB),y)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue