mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-09-09 07:42:53 +00:00
Same deal as in commit eddd98f
("kconfig: Replace some single-symbol
'if's with 'depends on'"), for all symbols defined within defconfig
files. See that commit for an explanation.
Maybe 'if's were used originally to mirror the 'if's in the main Kconfig
files, and then it got copied around by people assuming 'if' must work
differently from 'depends on'. It doesn't match in every spot at least.
Better to keep it simple and just consistently use 'depends on' when
it's a single symbol/choice I think. Helps reinforce that 'if' isn't
magic too.
Verified by printing all Kconfig menu nodes (symbols, choices, menus,
etc.) before and after the change and diffing (should show no
difference).
Signed-off-by: Ulf Magnusson <Ulf.Magnusson@nordicsemi.no>
41 lines
619 B
Plaintext
41 lines
619 B
Plaintext
# STM32 Minimum Development Board Configuration
|
|
|
|
# Copyright (c) 2017, embedjournal.com
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
if BOARD_STM32_MIN_DEV_BLUE || BOARD_STM32_MIN_DEV_BLACK
|
|
|
|
config BOARD
|
|
default "stm32_min_dev_blue" if BOARD_STM32_MIN_DEV_BLUE
|
|
default "stm32_min_dev_black" if BOARD_STM32_MIN_DEV_BLACK
|
|
|
|
config UART_1
|
|
default y
|
|
depends on UART_CONSOLE
|
|
|
|
if I2C
|
|
|
|
config I2C_1
|
|
default y
|
|
|
|
config I2C_2
|
|
default y
|
|
|
|
endif # I2C
|
|
|
|
config PWM_STM32_1
|
|
default y
|
|
depends on PWM
|
|
|
|
if SPI
|
|
|
|
config SPI_1
|
|
default y
|
|
|
|
config SPI_2
|
|
default y
|
|
|
|
endif # SPI
|
|
|
|
endif # BOARD_STM32_MIN_DEV_BLUE || BOARD_STM32_MIN_DEV_BLACK
|