Skip to content

Commit

Permalink
wip - just checking everything
Browse files Browse the repository at this point in the history
  • Loading branch information
MrKevinWeiss committed Feb 24, 2022
1 parent afd5381 commit 4f79da4
Show file tree
Hide file tree
Showing 80 changed files with 666 additions and 117 deletions.
2 changes: 2 additions & 0 deletions drivers/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ rsource "saul/Kconfig"
menu "Actuator Device Drivers"
rsource "aip31068/Kconfig"
rsource "apa102/Kconfig"
rsource "dac_dds/Kconfig"
rsource "dfplayer/Kconfig"
rsource "dynamixel/Kconfig"
rsource "feetech/Kconfig"
Expand All @@ -37,6 +38,7 @@ menu "Miscellaneous Device Drivers"
rsource "at/Kconfig"
rsource "at24mac/Kconfig"
rsource "bq2429x/Kconfig"
rsource "cst816s/Kconfig"
rsource "ds1307/Kconfig"
rsource "ds3231/Kconfig"
rsource "ds3234/Kconfig"
Expand Down
13 changes: 5 additions & 8 deletions drivers/adcxx1c/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -28,37 +28,34 @@ choice ADCXX1C_VARIANT

config MODULE_ADC081C
bool "ADC081C"
select MODULE_ADCXX1C

config MODULE_ADC101C
bool "ADC101C"
select MODULE_ADCXX1C

config MODULE_ADC121C
bool "ADC121C"
select MODULE_ADCXX1C

endchoice

select HAVE_ADCXX1C
config HAVE_ADCXX1C
bool
help
Indicates that ADCXX1C Analog-to-Digital is present.

select HAVE_ADC081C
config HAVE_ADC081C
bool
select HAVE_ADCXX1C
help
Indicates that ADC081C Analog-to-Digital is present.

select HAVE_ADC101C
config HAVE_ADC101C
bool
select HAVE_ADCXX1C
help
Indicates that ADC101C Analog-to-Digital is present.

select HAVE_ADC121C
config HAVE_ADC121C
bool
select HAVE_ADCXX1C
help
Indicates that ADC121C Analog-to-Digital is present.
Indicates that ADC121C Analog-to-Digital is present.
5 changes: 5 additions & 0 deletions drivers/at25xxx/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,8 @@ config MODULE_AT25XXX
help
This driver also supports M95xxx, 25AAxxx, 25LCxxx, CAT25xxx & BR25Sxxx
families.

config HAVE_APA102
bool
help
Indicates that the AT25xxx SPI-EEPROM RGB LED is present.
8 changes: 2 additions & 6 deletions drivers/at30tse75x/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,8 @@
# directory for more details.
#

comment "AT30TSE75X temperature sensor select by default for the current platform"
depends on MODULE_AT30TSE75X && MODULE_SAUL_DEFAULT && HAVE_AT30TSE75X

config MODULE_AT30TSE75X
bool
prompt "AT30TSE75X temperature sensor" if !(MODULE_SAUL_DEFAULT && HAVE_AT30TSE75X)
default (MODULE_SAUL_DEFAULT && HAVE_AT30TSE75X)
bool "AT30TSE75X temperature sensor"
depends on HAS_PERIPH_I2C
depends on TEST_KCONFIG
select MODULE_PERIPH_I2C
Expand All @@ -22,5 +17,6 @@ config MODULE_AT30TSE75X

config HAVE_AT30TSE75X
bool
select MODULE_AT30TSE75X if MODULE_SAUL_DEFAULT
help
Indicates that a AT30TSE75x sensor is present on the board.
5 changes: 5 additions & 0 deletions drivers/bh1750fvi/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,8 @@ config MODULE_BH1750FVI
depends on TEST_KCONFIG
select MODULE_PERIPH_I2C
select MODULE_XTIMER

config HAVE_BH1750FVI
bool
help
Indicates that the BH1750FVI ambient light sensor is present.
5 changes: 5 additions & 0 deletions drivers/bh1900nux/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,8 @@ config MODULE_BH1900NUX
depends on HAS_PERIPH_I2C
depends on TEST_KCONFIG
select MODULE_PERIPH_I2C

config HAVE_BH1900NUX
bool
help
Indicates that the BH1900NUX temperature sensor is present.
25 changes: 23 additions & 2 deletions drivers/bme680/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,20 @@
#

menuconfig MODULE_BME680
bool "BME680 Temperature/Humidity/Pressure/Gas sensor"
bool
prompt "BME680 Temperature/Humidity/Pressure/Gas sensor" if !(MODULE_SAUL_DEFAULT && HAVE_BME680)
default (MODULE_SAUL_DEFAULT && HAVE_BME680)
depends on TEST_KCONFIG
select PACKAGE_DRIVER_BME680
select MODULE_ZTIMER if MODULE_SAUL
select MODULE_ZTIMER_MSEC if MODULE_SAUL

if MODULE_BME680

choice
choice BME680_VARIANT
bool "Device interface"
default MODULE_BME680_I2C if HAVE_BME680_I2C
default MODULE_BME680_SPI if HAVE_BME680_SPI
help
The device can be connected via different buses, select one.

Expand All @@ -37,3 +41,20 @@ config MODULE_BME680_FP
bool "Enable floating point"

endif # MODULE_BME680

config HAVE_BME680
bool
help
Indicates that the BME680 Temperature/Humidity/Pressure/Gas sensor is present.

config HAVE_BME680_I2C
bool
select HAVE_BME680
help
Indicates that the BME680 Temperature/Humidity/Pressure/Gas sensor is connected with i2c.

config HAVE_BME680_SPI
bool
select HAVE_BME680
help
Indicates that the BME680 Temperature/Humidity/Pressure/Gas sensor is connected with spi.
1 change: 0 additions & 1 deletion drivers/bmx055/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ config MODULE_BMX055
depends on HAS_PERIPH_I2C
depends on TEST_KCONFIG
select MODULE_PERIPH_I2C
default y if HAVE_BMX055 && MODULE_SAUL_DEFAULT

menuconfig KCONFIG_USEMODULE_BMX055
bool "Configure BMX055 driver"
Expand Down
12 changes: 5 additions & 7 deletions drivers/bmx280/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
# directory for more details.
#


menuconfig MODULE_BMX280
bool
prompt "BMx280 Temperature, pressure and humidity sensors" if !(MODULE_SAUL_DEFAULT && HAVE_BMX280)
Expand Down Expand Up @@ -52,6 +51,11 @@ endchoice

endif # MODULE_BMX280

config HAVE_BMX280
bool
help
Indicates that a bmx280 sensor is present.

config HAVE_BME280_I2C
bool
select HAVE_BMX280
Expand All @@ -75,9 +79,3 @@ config HAVE_BMP280_SPI
select HAVE_BMX280
help
Indicates that a bmp280 sensor on the SPI bus is present.

config HAVE_BMX280
bool
select MODULE_BMX280 if MODULE_SAUL_DEFAULT
help
Indicates that a bmx280 sensor is present.
2 changes: 1 addition & 1 deletion drivers/bq2429x/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ menuconfig MODULE_BQ2429X
depends on TEST_KCONFIG
select MODULE_PERIPH_I2C
select MODULE_PERIPH_GPIO
default y if HAVE_BQ2429X
help
The driver can be used with Texas Instruments USB charger ICs: BQ24295,
BQ24296, BQ24297, BQ24298, BQ24292I, BQ24296M.
Expand All @@ -33,6 +32,7 @@ config HAVE_BQ2429X

config HAVE_BQ2429X_INT
bool
select HAVE_BQ2429X
help
Indicates that a BQ2429x charger and power management IC is present,
with interrupt functionality (the INT pin is connected).
5 changes: 3 additions & 2 deletions drivers/ccs811/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@
#

menuconfig MODULE_CCS811
bool "CCS811 digital gas sensor"
bool
prompt "CCS811 digital gas sensor" if !(MODULE_SAUL_DEFAULT && HAVE_CCS811)
default (MODULE_SAUL_DEFAULT && HAVE_CCS811)
depends on HAS_PERIPH_GPIO
depends on HAS_PERIPH_I2C
depends on TEST_KCONFIG
Expand All @@ -31,6 +33,5 @@ config MODULE_CCS811_FULL

config HAVE_CCS811
bool
select MODULE_CCS811 if MODULE_SAUL_DEFAULT
help
Indicates that a ccs811 sensor is present.
20 changes: 20 additions & 0 deletions drivers/cst816s/Kconfig
Original file line number Diff line number Diff line change
@@ -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.
#

config MODULE_CST816S
bool "cst816s touch screen"
depends on HAS_PERIPH_GPIO_IRQ
depends on HAS_PERIPH_I2C
depends on TEST_KCONFIG
select MODULE_PERIPH_GPIO_IRQ
select MODULE_PERIPH_I2C
select MODULE_XTIMER

config HAVE_CST816S
bool
help
Indicates that a cst816s touch screen is present.
14 changes: 14 additions & 0 deletions drivers/dac_dds/Kconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Copyright (c) 2022 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_DAC_DDS
bool "Common DAC function fallback implementations"
depends on HAS_PERIPH_DAC
depends on HAS_PERIPH_TIMER_PERIODIC
depends on TEST_KCONFIG
select MODULE_PERIPH_DAC
select MODULE_PERIPH_TIMER_PERIODIC
5 changes: 5 additions & 0 deletions drivers/dcf77/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,8 @@ config MODULE_DCF77
select MODULE_PERIPH_GPIO
select MODULE_PERIPH_GPIO_IRQ
select MODULE_XTIMER

config HAVE_DCF77
bool
help
Indicates that a dcf77 long wave receiver is present.
5 changes: 5 additions & 0 deletions drivers/dfplayer/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,8 @@ config DFPLAYER_NO_STRERROR
help
Say y to print error codes as numbers when using the shell, instead of the corresponding
standard error string.

config HAVE_DFPLAYER
bool
help
Indicates that a DFPlayer Mini MP3 Player is present.
6 changes: 6 additions & 0 deletions drivers/dht/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,9 @@ config MODULE_DHT
depends on TEST_KCONFIG
select MODULE_PERIPH_GPIO
select MODULE_XTIMER

config HAVE_DHT
bool
select MODULE_DHT if MODULE_SAUL_DEFAULT
help
Indicates that a DHT Humidity and Temperature Sensor is present.
5 changes: 5 additions & 0 deletions drivers/ds1307/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,8 @@ config MODULE_DS1307
depends on HAS_PERIPH_I2C
depends on TEST_KCONFIG
select MODULE_PERIPH_I2C

config HAVE_DS1307
bool
help
Indicates that a DS1307 real-time clock is present.
9 changes: 8 additions & 1 deletion drivers/ds18/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@
#

menuconfig MODULE_DS18
bool "DS18 temperature sensors"
bool
prompt "DS18 temperature sensors" if !(MODULE_SAUL_DEFAULT && HAVE_DS18)
default (MODULE_SAUL_DEFAULT && HAVE_DS18)
depends on HAS_PERIPH_GPIO
depends on TEST_KCONFIG
select MODULE_PERIPH_GPIO
Expand All @@ -18,3 +20,8 @@ config MODULE_DS18_OPTIMIZED
help
Say y to use the optimized mode if the board can handle ~3us resolution
with the xtimer.

config HAVE_DS18
bool
help
Indicates that a DS18 temperature sensor is present.
5 changes: 5 additions & 0 deletions drivers/ds3231/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,8 @@ config MODULE_DS3231
depends on HAS_PERIPH_I2C
depends on TEST_KCONFIG
select MODULE_PERIPH_I2C

config HAVE_DS3231
bool
help
Indicates that a DS3231 real-time clock is present.
5 changes: 5 additions & 0 deletions drivers/ds3234/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,8 @@ config MODULE_DS3234
depends on HAS_PERIPH_SPI
depends on TEST_KCONFIG
select MODULE_PERIPH_SPI

config HAVE_DS3234
bool
help
Indicates that a DS3234 real-time clock is present.
6 changes: 6 additions & 0 deletions drivers/ds75lx/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,9 @@ config MODULE_DS75LX
depends on TEST_KCONFIG
select MODULE_PERIPH_I2C
select MODULE_XTIMER

config HAVE_DS75LX
bool
select MODULE_DS75LX if MODULE_SAUL_DEFAULT
help
Indicates that a DS75LX temperature sensor is present.
5 changes: 5 additions & 0 deletions drivers/dsp0401/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,8 @@ config MODULE_DSP0401
select MODULE_PERIPH_PWM
select MODULE_ZTIMER
select ZTIMER_USEC

config HAVE_DSP0401
bool
help
Indicates that a DSP0401 alphanumeric display clock is present.
2 changes: 1 addition & 1 deletion drivers/edbg_eui/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ config MODULE_EDBG_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
select MODULE_EDBG_EUI if MODULE_EUI_PROVIDER
help
Indicates that the Atmel Embedded Debugeger EUI is available on the
platform.
6 changes: 6 additions & 0 deletions drivers/gp2y10xx/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@ config MODULE_GP2Y10XX
select MODULE_PERIPH_ADC
select MODULE_XTIMER

config HAVE_GP2Y10XX
bool
select MODULE_GP2Y10XX if MODULE_SAUL_DEFAULT
help
Indicates that a GP2Y10xx Optical Dust Sensor is present.

menuconfig KCONFIG_USEMODULE_GP2Y10XX
bool "Configure GP2Y10xx driver"
depends on USEMODULE_GP2Y10XX
Expand Down
6 changes: 6 additions & 0 deletions drivers/grove_ledbar/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,9 @@ config MODULE_GROVE_LEDBAR
bool "Grove ledbar"
depends on MODULE_MY9221
depends on TEST_KCONFIG

config HAVE_GROVE_LEDBAR
bool
select MODULE_GROVE_LEDBAR if MODULE_SAUL_DEFAULT
help
Indicates that a Grove ledbar is present.
Loading

0 comments on commit 4f79da4

Please sign in to comment.