Add options to control the behavior of sw0/sw1. These options also allow to select GPIO when needed. Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
20 lines
458 B
Plaintext
20 lines
458 B
Plaintext
# Copyright (c) 2021 Nordic Semiconductor ASA
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
source "Kconfig.zephyr"
|
|
|
|
config I2C
|
|
default $(dt_compat_on_bus,$(DT_COMPAT_WOLFSON_WM8731),i2c)
|
|
|
|
config TOGGLE_ECHO_EFFECT_SW0
|
|
bool "Toggle echo effect when pressing sw0"
|
|
depends on $(dt_alias_enabled,sw0)
|
|
select GPIO
|
|
default y
|
|
|
|
config STOP_START_STREAMS_SW1
|
|
bool "Start/stop I2S streams when pressing sw1"
|
|
depends on $(dt_alias_enabled,sw1)
|
|
select GPIO
|
|
default y
|