1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

Merge pull request #15509 from leandrolanzieri/pr/kconfig/drivers_def

drivers/{d,e,f}*: add Kconfig modules
This commit is contained in:
Alexandre Abadie 2020-12-02 13:37:40 +01:00 committed by GitHub
commit 7492bd4b3d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
37 changed files with 337 additions and 3 deletions

View File

@ -7,9 +7,11 @@ tests/driver_ad7746 tests/driver_adcxx1c tests/driver_ads101x tests/driver_adt10
tests/driver_adt7310 tests/driver_adxl345 tests/driver_aip31068 tests/driver_apa102
tests/driver_apds99xx tests/driver_apds99xx_full tests/driver_at tests/driver_at24cxxx
tests/driver_at24mac tests/driver_at25xxx tests/driver_at30tse75x tests/driver_ata8520e
tests/driver_b* tests/driver_ccs811 tests/driver_ccs811_full
tests/driver_g* tests/driver_h* tests/driver_i* tests/driver_j*
tests/driver_my9221"}
tests/driver_b* tests/driver_ccs811 tests/driver_ccs811_full tests/driver_dcf77
tests/driver_dfplayer tests/driver_dht tests/driver_ds18 tests/driver_ds75lx
tests/driver_ds1307 tests/driver_ds3231 tests/driver_ds3234 tests/driver_dsp0401
tests/driver_dynamixel tests/driver_edbg_eui tests/driver_f* tests/driver_g*
tests/driver_h* tests/driver_i* tests/driver_j* tests/driver_my9221"}
: ${TEST_KCONFIG_native:="examples/hello-world tests/periph_*"}
export RIOT_CI_BUILD=1

View File

@ -24,3 +24,4 @@ config BOARD_SAMR21_XPRO
select HAS_RIOTBOOT
select HAVE_SAUL_GPIO
select HAVE_EDBG_EUI

View File

@ -11,6 +11,9 @@ rsource "saul/Kconfig"
menu "Actuator Device Drivers"
rsource "aip31068/Kconfig"
rsource "apa102/Kconfig"
rsource "dfplayer/Kconfig"
rsource "dynamixel/Kconfig"
rsource "feetech/Kconfig"
rsource "grove_ledbar/Kconfig"
rsource "motor_driver/Kconfig"
rsource "my9221/Kconfig"
@ -19,9 +22,16 @@ endmenu # Actuator Device Drivers
menu "Miscellaneous Device Drivers"
rsource "at/Kconfig"
rsource "at24mac/Kconfig"
rsource "disp_dev/Kconfig"
rsource "ds1307/Kconfig"
rsource "ds3231/Kconfig"
rsource "ds3234/Kconfig"
rsource "dsp0401/Kconfig"
rsource "edbg_eui/Kconfig"
rsource "hd44780/Kconfig"
rsource "ili9341/Kconfig"
rsource "io1_xplained/Kconfig"
rsource "uart_half_duplex/Kconfig"
endmenu # Miscellaneous Device Drivers
rsource "Kconfig.net"
@ -45,6 +55,10 @@ rsource "bmp180/Kconfig"
rsource "bmx055/Kconfig"
rsource "bmx280/Kconfig"
rsource "ccs811/Kconfig"
rsource "dcf77/Kconfig"
rsource "dht/Kconfig"
rsource "ds18/Kconfig"
rsource "ds75lx/Kconfig"
rsource "fxos8700/Kconfig"
rsource "gp2y10xx/Kconfig"
rsource "hdc1000/Kconfig"

15
drivers/dcf77/Kconfig Normal file
View File

@ -0,0 +1,15 @@
# 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.
#
config MODULE_DCF77
bool "DCF77 long wave receiver with 77,5 kHz"
depends on HAS_PERIPH_GPIO
depends on HAS_PERIPH_GPIO_IRQ
depends on TEST_KCONFIG
select MODULE_PERIPH_GPIO
select MODULE_PERIPH_GPIO_IRQ
select MODULE_XTIMER

18
drivers/dfplayer/Kconfig Normal file
View File

@ -0,0 +1,18 @@
# 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.
#
config MODULE_DFPLAYER
bool "DFPlayer Mini MP3 Player"
depends on HAS_PERIPH_UART
depends on HAS_PERIPH_GPIO
depends on TEST_KCONFIG
select MODULE_PERIPH_UART
select MODULE_PERIPH_GPIO
select MODULE_XTIMER
select HAVE_MULTIMEDIA_DEVICE
# Perhaps this could be moved to its own symbol to enable the dfplayer commands
select MODULE_FMT if MODULE_SHELL_COMMANDS

13
drivers/dht/Kconfig Normal file
View File

@ -0,0 +1,13 @@
# 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.
#
config MODULE_DHT
bool "DHT Humidity and Temperature Sensors"
depends on HAS_PERIPH_GPIO
depends on TEST_KCONFIG
select MODULE_PERIPH_GPIO
select MODULE_XTIMER

10
drivers/disp_dev/Kconfig Normal file
View File

@ -0,0 +1,10 @@
# 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.
#
config MODULE_DISP_DEV
bool "Display device generic API"
depends on TEST_KCONFIG

12
drivers/ds1307/Kconfig Normal file
View File

@ -0,0 +1,12 @@
# 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.
#
config MODULE_DS1307
bool "DS1307 real-time clock"
depends on HAS_PERIPH_I2C
depends on TEST_KCONFIG
select MODULE_PERIPH_I2C

20
drivers/ds18/Kconfig Normal file
View File

@ -0,0 +1,20 @@
# 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.
#
menuconfig MODULE_DS18
bool "DS18 temperature sensors"
depends on HAS_PERIPH_GPIO
depends on TEST_KCONFIG
select MODULE_PERIPH_GPIO
select MODULE_XTIMER
config MODULE_DS18_OPTIMIZED
bool "Optimized mode"
depends on MODULE_DS18
help
Say y to use the optimized mode if the board can handle ~3us resolution
with the xtimer.

12
drivers/ds3231/Kconfig Normal file
View File

@ -0,0 +1,12 @@
# 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.
#
config MODULE_DS3231
bool "DS3231 Real Time Clock"
depends on HAS_PERIPH_I2C
depends on TEST_KCONFIG
select MODULE_PERIPH_I2C

12
drivers/ds3234/Kconfig Normal file
View File

@ -0,0 +1,12 @@
# 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.
#
config MODULE_DS3234
bool "DS3234 Extremely Accurate SPI RTC"
depends on HAS_PERIPH_SPI
depends on TEST_KCONFIG
select MODULE_PERIPH_SPI

13
drivers/ds75lx/Kconfig Normal file
View File

@ -0,0 +1,13 @@
# 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.
#
config MODULE_DS75LX
bool "Maxim DS75LX temperature sensor"
depends on HAS_PERIPH_I2C
depends on TEST_KCONFIG
select MODULE_PERIPH_I2C
select MODULE_XTIMER

15
drivers/dsp0401/Kconfig Normal file
View File

@ -0,0 +1,15 @@
# 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.
#
config MODULE_DSP0401
bool "DSP0401 alphanumeric display"
depends on HAS_PERIPH_GPIO
depends on HAS_PERIPH_PWM
depends on TEST_KCONFIG
select MODULE_PERIPH_GPIO
select MODULE_PERIPH_PWM
select MODULE_XTIMER

11
drivers/dynamixel/Kconfig Normal file
View File

@ -0,0 +1,11 @@
# 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.
#
config MODULE_DYNAMIXEL
bool "Dynamixel driver"
depends on MODULE_UART_HALF_DUPLEX
depends on TEST_KCONFIG

21
drivers/edbg_eui/Kconfig Normal file
View File

@ -0,0 +1,21 @@
# 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.
#
config MODULE_EDBG_EUI
bool "Atmel Embedded Debugger EUI"
depends on HAS_PERIPH_I2C
depends on TEST_KCONFIG
select MODULE_PERIPH_I2C
default y if MODULE_EUI_PROVIDER && HAVE_EDBG_EUI
help
Driver for getting a unique ID from the Atmel Embedded Debugger.
config HAVE_EDBG_EUI
bool
help
Indicates that the Atmel Embedded Debugeger EUI is available on the
platform.

11
drivers/feetech/Kconfig Normal file
View File

@ -0,0 +1,11 @@
# 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.
#
config MODULE_FEETECH
bool "Feetech's servomotors communication bus"
depends on MODULE_UART_HALF_DUPLEX
depends on TEST_KCONFIG

View File

@ -1,9 +1,18 @@
# Copyright (c) 2020 Freie Universitaet Berlin
# 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.
#
config MODULE_FXOS8700
bool "FXOS8700 3-axis accelerometer/magnetometer"
depends on HAS_PERIPH_I2C
depends on TEST_KCONFIG
select MODULE_PERIPH_I2C
select MODULE_XTIMER
menuconfig KCONFIG_USEMODULE_FXOS8700
bool "Configure FXOS8700 driver"
depends on USEMODULE_FXOS8700

View File

@ -0,0 +1,18 @@
# 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.
#
config MODULE_UART_HALF_DUPLEX
bool "half-duplex UART Driver"
depends on HAS_PERIPH_GPIO
depends on HAS_PERIPH_UART
depends on TEST_KCONFIG
select MODULE_PERIPH_GPIO
select MODULE_PERIPH_UART
select MODULE_XTIMER
help
This module contains drivers for UART half-duplex communication bus. It
needs to manage the communication direction by enabling or disabling TX.

View File

@ -43,4 +43,7 @@ config MODULE_STDIO_UART_RX
help
Reception when using UART-based STDIO needs to be enabled.
config MODULE_PRINTF_FLOAT
bool "Float support in printf"
endmenu # Standard Input/Output (STDIO)

View File

@ -13,3 +13,5 @@ config MODULE_AUTO_INIT
Auto-initialization module. Can be used to initialize modules (such as
drivers, or network interfaces) on start-up automatically. Disable if a
more custom initialization is required. If unsure, say Y.
rsource "multimedia/Kconfig"

View File

@ -0,0 +1,17 @@
# 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.
#
config MODULE_AUTO_INIT_MULTIMEDIA
bool "Auto initialize multimedia subsystem"
depends on MODULE_AUTO_INIT
depends on TEST_KCONFIG
default y if HAVE_MULTIMEDIA_DEVICE
config HAVE_MULTIMEDIA_DEVICE
bool
help
Indicates that a multimedia device driver is present.

View File

@ -7,5 +7,6 @@
config MODULE_EMBUNIT
bool "EmbUnit"
depends on TEST_KCONFIG
help
RIOT Unittests based on the EmbUnit Framework.

View File

@ -7,6 +7,7 @@
menuconfig MODULE_FMT
bool "String formatting"
depends on TEST_KCONFIG
config MODULE_FMT_TABLE
bool "Table extension"

View File

@ -0,0 +1,3 @@
# this file enables modules defined in Kconfig. Do not use this file for
# application configuration. This is only needed during migration.
CONFIG_MODULE_DCF77=y

View File

@ -0,0 +1,12 @@
# this file enables modules defined in Kconfig. Do not use this file for
# application configuration. This is only needed during migration.
CONFIG_MODULE_DFPLAYER=y
# enable event thread in lowest priority
CONFIG_MODULE_EVENT=y
CONFIG_MODULE_EVENT_THREAD=y
CONFIG_MODULE_EVENT_THREAD_LOWEST=y
# enable shell with basic commands
CONFIG_MODULE_SHELL=y
CONFIG_MODULE_SHELL_COMMANDS=y

View File

@ -0,0 +1,5 @@
# this file enables modules defined in Kconfig. Do not use this file for
# application configuration. This is only needed during migration.
CONFIG_MODULE_DHT=y
CONFIG_MODULE_FMT=y
CONFIG_MODULE_XTIMER=y

View File

@ -0,0 +1,6 @@
# this file enables modules defined in Kconfig. Do not use this file for
# application configuration. This is only needed during migration.
CONFIG_MODULE_DS1307=y
CONFIG_MODULE_EMBUNIT=y
CONFIG_MODULE_XTIMER=y
CONFIG_MODULE_TEST_UTILS_INTERACTIVE_SYNC=y

View File

@ -0,0 +1,8 @@
# this file enables modules defined in Kconfig. Do not use this file for
# application configuration. This is only needed during migration.
CONFIG_MODULE_DS18=y
CONFIG_MODULE_XTIMER=y
CONFIG_MODULE_PRINTF_FLOAT=y
# Use the module if you have an accurate sleep with xtimer (~3us)
#CONFIG_MODULE_DS18_OPTIMIZED=y

View File

@ -0,0 +1,6 @@
# this file enables modules defined in Kconfig. Do not use this file for
# application configuration. This is only needed during migration.
CONFIG_MODULE_DS3231=y
CONFIG_MODULE_SHELL=y
CONFIG_MODULE_XTIMER=y
CONFIG_MODULE_TEST_UTILS_INTERACTIVE_SYNC=y

View File

@ -0,0 +1,3 @@
# this file enables modules defined in Kconfig. Do not use this file for
# application configuration. This is only needed during migration.
CONFIG_MODULE_DS3234=y

View File

@ -0,0 +1,4 @@
# this file enables modules defined in Kconfig. Do not use this file for
# application configuration. This is only needed during migration.
CONFIG_MODULE_DS75LX=y
CONFIG_MODULE_XTIMER=y

View File

@ -0,0 +1,3 @@
# this file enables modules defined in Kconfig. Do not use this file for
# application configuration. This is only needed during migration.
CONFIG_MODULE_DSP0401=y

View File

@ -0,0 +1,8 @@
# this file enables modules defined in Kconfig. Do not use this file for
# application configuration. This is only needed during migration.
# needed for the Dynamixel bus implementation
CONFIG_MODULE_UART_HALF_DUPLEX=y
CONFIG_MODULE_DYNAMIXEL=y
CONFIG_MODULE_SHELL=y

View File

@ -0,0 +1,11 @@
# 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.
#
config APPLICATION
bool
default y
depends on BOARD_SAMR21_XPRO

View File

@ -0,0 +1,3 @@
# this file enables modules defined in Kconfig. Do not use this file for
# application configuration. This is only needed during migration.
CONFIG_MODULE_EDBG_EUI=y

View File

@ -0,0 +1,8 @@
# this file enables modules defined in Kconfig. Do not use this file for
# application configuration. This is only needed during migration.
# needed for the Feetech bus implementation
CONFIG_MODULE_UART_HALF_DUPLEX=y
CONFIG_MODULE_FEETECH=y
CONFIG_MODULE_SHELL=y

View File

@ -0,0 +1,3 @@
# this file enables modules defined in Kconfig. Do not use this file for
# application configuration. This is only needed during migration.
CONFIG_MODULE_FXOS8700=y