mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
drivers/mpu9x50: add module to Kconfig
This commit is contained in:
parent
b959e3a11e
commit
91e88522af
@ -92,6 +92,7 @@ rsource "mhz19/Kconfig"
|
|||||||
rsource "mma8x5x/Kconfig"
|
rsource "mma8x5x/Kconfig"
|
||||||
rsource "mma7660/Kconfig"
|
rsource "mma7660/Kconfig"
|
||||||
rsource "mpl3115a2/Kconfig"
|
rsource "mpl3115a2/Kconfig"
|
||||||
|
rsource "mpu9x50/Kconfig"
|
||||||
rsource "opt3001/Kconfig"
|
rsource "opt3001/Kconfig"
|
||||||
rsource "pca9633/Kconfig"
|
rsource "pca9633/Kconfig"
|
||||||
rsource "pca9685/Kconfig"
|
rsource "pca9685/Kconfig"
|
||||||
|
33
drivers/mpu9x50/Kconfig
Normal file
33
drivers/mpu9x50/Kconfig
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
# Copyright (c) 2020 HAW Hamburg
|
||||||
|
#
|
||||||
|
# This file is subject to the terms and conditions of the GNU Lesser
|
||||||
|
# General Public License v2.1. See the file LICENSE in the top level
|
||||||
|
# directory for more details.
|
||||||
|
#
|
||||||
|
|
||||||
|
if TEST_KCONFIG
|
||||||
|
|
||||||
|
choice
|
||||||
|
bool "MPU-9X50 accelerometer/magnetometer/gyroscope"
|
||||||
|
optional
|
||||||
|
depends on HAS_PERIPH_I2C
|
||||||
|
help
|
||||||
|
This driver supports both MPU9150 and MPU9250. Choose one model.
|
||||||
|
|
||||||
|
config MODULE_MPU9150
|
||||||
|
bool "MPU-9150"
|
||||||
|
select MODULE_MPU9X50
|
||||||
|
|
||||||
|
config MODULE_MPU9250
|
||||||
|
bool "MPU-9250"
|
||||||
|
select MODULE_MPU9X50
|
||||||
|
|
||||||
|
endchoice
|
||||||
|
|
||||||
|
config MODULE_MPU9X50
|
||||||
|
bool
|
||||||
|
depends on HAS_PERIPH_I2C
|
||||||
|
select MODULE_PERIPH_I2C
|
||||||
|
select MODULE_XTIMER
|
||||||
|
|
||||||
|
endif # TEST_KCONFIG
|
Loading…
Reference in New Issue
Block a user