1
0
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:
Leandro Lanzieri 2020-12-08 17:26:37 +01:00
parent b959e3a11e
commit 91e88522af
No known key found for this signature in database
GPG Key ID: F4E9A721761C7593
2 changed files with 34 additions and 0 deletions

View File

@ -92,6 +92,7 @@ rsource "mhz19/Kconfig"
rsource "mma8x5x/Kconfig"
rsource "mma7660/Kconfig"
rsource "mpl3115a2/Kconfig"
rsource "mpu9x50/Kconfig"
rsource "opt3001/Kconfig"
rsource "pca9633/Kconfig"
rsource "pca9685/Kconfig"

33
drivers/mpu9x50/Kconfig Normal file
View 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