1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-17 04:52:59 +01:00

drivers/saul/Kconfig: fix autoselection based on SAUL_DEFAULT

This commit is contained in:
Francisco Molina 2021-11-30 14:43:43 +01:00
parent 39cfa43262
commit 738ec239b1

View File

@ -24,13 +24,16 @@ config MODULE_SAUL_ADC
bool "SAUL wrapper for direct access to analog pins"
depends on HAS_PERIPH_ADC
select MODULE_PERIPH_ADC
default y if HAVE_SAUL_ADC
config MODULE_SAUL_GPIO
bool "SAUL wrapper for direct access to GPIO pins"
depends on HAS_PERIPH_GPIO
select MODULE_PERIPH_GPIO
default y if HAVE_SAUL_GPIO
config MODULE_SAUL_PWM
bool "SAUL wrapper PWM enabled GPIO pins"
depends on HAS_PERIPH_PWM
select MODULE_PERIPH_PWM
config MODULE_SAUL_NRF_TEMPERATURE
bool "SAUL wrapper for direct access to the temperature peripheral"
@ -50,10 +53,18 @@ endif # MODULE_SAUL
config HAVE_SAUL_ADC
bool
select MODULE_SAUL_ADC if MODULE_SAUL_DEFAULT
help
Indicates that configuration for ADC access via SAUL is available.
config HAVE_SAUL_GPIO
bool
select MODULE_SAUL_GPIO if MODULE_SAUL_DEFAULT
help
Indicates that configuration for GPIO access via SAUL is available.
config HAVE_SAUL_PWM
bool
select MODULE_SAUL_PWM if MODULE_SAUL_DEFAULT
help
Indicates that configuration for PWM access via SAUL is available.