2020-04-16 12:29:33 +02:00
|
|
|
# Copyright (c) 2020 Freie Universitaet Berlin
|
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
#
|
2020-11-11 10:18:22 +01:00
|
|
|
|
|
|
|
config MODULE_ADS101X
|
|
|
|
bool "ADS101X Analog-to-Digital converter"
|
|
|
|
depends on HAS_PERIPH_GPIO
|
|
|
|
depends on HAS_PERIPH_GPIO_IRQ
|
|
|
|
depends on HAS_PERIPH_I2C
|
|
|
|
depends on TEST_KCONFIG
|
|
|
|
select MODULE_PERIPH_GPIO
|
|
|
|
select MODULE_PERIPH_GPIO_IRQ
|
|
|
|
select MODULE_PERIPH_I2C
|
2021-11-02 11:21:23 +01:00
|
|
|
select MODULE_ZTIMER
|
|
|
|
select MODULE_ZTIMER_MSEC
|
2020-11-11 10:18:22 +01:00
|
|
|
help
|
|
|
|
This driver works with the ads1013, ads1014, ads1015, ads1113, ads1114
|
|
|
|
and ads1115 models.
|
|
|
|
|
2020-08-31 09:33:35 +02:00
|
|
|
menuconfig KCONFIG_USEMODULE_ADS101X
|
2020-04-16 12:29:33 +02:00
|
|
|
bool "Configure ADS101X driver"
|
2020-08-31 09:33:35 +02:00
|
|
|
depends on USEMODULE_ADS101X
|
2020-04-16 12:29:33 +02:00
|
|
|
help
|
|
|
|
Configure the ADS101X driver using Kconfig.
|
|
|
|
|
2020-08-31 09:33:35 +02:00
|
|
|
if KCONFIG_USEMODULE_ADS101X
|
2020-04-16 12:29:33 +02:00
|
|
|
|
|
|
|
config ADS101X_I2C_ADDRESS
|
|
|
|
hex "Default I2C address"
|
|
|
|
range 0x48 0x51
|
|
|
|
default 0x48
|
|
|
|
help
|
|
|
|
ADS101X allows for upto 4 devices on Single Bus. The value depends on
|
|
|
|
the state of ADDR Pin. Default value (0x48) corresponds to ADDR pin tied
|
|
|
|
to GND. For more information refer I2C Address Selection in Datasheet.
|
2020-08-31 09:33:35 +02:00
|
|
|
endif # KCONFIG_USEMODULE_ADS101X
|
2021-12-07 20:16:20 +01:00
|
|
|
|
|
|
|
config HAVE_ADS101X
|
|
|
|
bool
|
|
|
|
select MODULE_ADS101X if MODULE_SAUL_DEFAULT
|
|
|
|
help
|
|
|
|
Indicates that an ADS101X Analog-to-Digital converter is present.
|