mirror of
https://github.com/apache/nuttx.git
synced 2026-06-04 06:42:32 +08:00
Kconfig: Simplify the conditional default statement
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
committed by
Alan Carvalho de Assis
parent
e031a73aef
commit
abfe082a6f
@@ -12,8 +12,7 @@ if ARCH_BOARD_B_G474E_DPOW1
|
||||
#
|
||||
#config SOME_CONFIG_BOOL
|
||||
# bool "Description"
|
||||
# default n if !FEATURE_X
|
||||
# default y if FEATURE_X
|
||||
# default FEATURE_X
|
||||
# depends on FEATURE_Y
|
||||
# ---help---
|
||||
# Help text goes here.
|
||||
|
||||
@@ -20,8 +20,7 @@ endif # SENSORS_QENCODER
|
||||
|
||||
config NUCLEO_F446RE_AJOY_MINBUTTONS
|
||||
bool "Minimal Joystick Buttons"
|
||||
default n if !STM32_USART1
|
||||
default y if STM32_USART1
|
||||
default STM32_USART1
|
||||
depends on INPUT_AJOYSTICK
|
||||
---help---
|
||||
The Itead Joystick shield supports analog X/Y position and up to 5
|
||||
|
||||
@@ -12,8 +12,7 @@ config NUCLEO_F401RE_QETIMER
|
||||
|
||||
config NUCLEO_F401RE_AJOY_MINBUTTONS
|
||||
bool "Minimal Joystick Buttons"
|
||||
default n if !STM32_USART1
|
||||
default y if STM32_USART1
|
||||
default STM32_USART1
|
||||
depends on INPUT_AJOYSTICK
|
||||
---help---
|
||||
The Itead Joystick shield supports analog X/Y position and up to 5
|
||||
|
||||
@@ -12,8 +12,7 @@ if ARCH_BOARD_NUCLEO_G474RE
|
||||
#
|
||||
#config SOME_CONFIG_BOOL
|
||||
# bool "Description"
|
||||
# default n if !FEATURE_X
|
||||
# default y if FEATURE_X
|
||||
# default FEATURE_X
|
||||
# depends on FEATURE_Y
|
||||
# ---help---
|
||||
# Help text goes here.
|
||||
|
||||
Reference in New Issue
Block a user