Skip to content

Commit

Permalink
Add BME280 to Makefile and Kconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
lupyuen committed Feb 20, 2022
1 parent 8b2a28f commit 1e0c62d
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
15 changes: 15 additions & 0 deletions drivers/sensors/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,21 @@ config BH1750FVI_I2C_FREQUENCY
default 400000
depends on SENSORS_BH1750FVI

config SENSORS_BME280
bool "Bosch BME280 Humidity / Temperaure / Barometic Pressure Sensor"
default n
select I2C
---help---
Enable driver for the Bosch BME280 humidity / temperature / barometic pressure sensor.

if SENSORS_BME280

config BME280_I2C_FREQUENCY
int "BME280 I2C frequency"
default 400000

endif # SENSORS_BME280

config SENSORS_BMG160
bool "Bosch BMG160 Gyroscope Sensor support"
default n
Expand Down
4 changes: 4 additions & 0 deletions drivers/sensors/Make.defs
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,10 @@ ifeq ($(CONFIG_SENSORS_BMG160),y)
CSRCS += bmg160.c
endif

ifeq ($(CONFIG_SENSORS_BME280),y)
CSRCS += bme280.c
endif

ifeq ($(CONFIG_SENSORS_BMI160),y)
CSRCS += bmi160.c
endif
Expand Down

0 comments on commit 1e0c62d

Please sign in to comment.