Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Kconfig style #15147

Merged
merged 1 commit into from
Dec 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 12 additions & 12 deletions arch/arm/src/stm32h5/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ endchoice # STM32 H5 Chip Selection
config STM32H5_STM32H5XXXX
bool
default n
select ARCH_HAVE_FPU
select ARCH_HAVE_FPU

config STM32H5_STM32H56XXX
bool
Expand Down Expand Up @@ -278,8 +278,8 @@ config STM32H5_USART
default n

config STM32H5_ADC
bool
default n
bool
default n

config STM32H5_SPI
bool
Expand All @@ -292,14 +292,14 @@ config STM32H5_SPI_DMA
# These are the peripheral selections proper

config STM32H5_ADC1
bool "ADC1"
default n
select STM32H5_ADC
bool "ADC1"
default n
select STM32H5_ADC

config STM32H5_ADC2
bool "ADC2"
default n
select STM32H5_ADC
bool "ADC2"
default n
select STM32H5_ADC

config STM32H5_ETHMAC
bool "Ethernet MAC"
Expand Down Expand Up @@ -401,8 +401,8 @@ config STM32H5_LPUART1
select STM32H5_USART

config STM32H5_I2C
bool
default n
bool
default n

config STM32H5_I2C1
bool "I2C1"
Expand Down Expand Up @@ -470,7 +470,7 @@ config STM32H5_FLASH_PREFETCH
bool "Enable FLASH Pre-fetch"
default y
---help---
Enable FLASH prefetch
Enable FLASH prefetch

config STM32H5_DISABLE_IDLE_SLEEP_DURING_DEBUG
bool "Disable IDLE Sleep (WFI) in debug mode"
Expand Down
36 changes: 18 additions & 18 deletions arch/xtensa/src/common/espressif/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -24,25 +24,25 @@ config ESPRESSIF_TEMP
A built-in sensor used to measure the chip's internal temperature.

config ESPRESSIF_I2C_PERIPH
bool
depends on (ESP32S3_I2C0 || ESP32S3_I2C1) || (ESP32_I2C0 || ESP32_I2C1) || (ESP32S2_I2C0 || ESP32S2_I2C1)
default n
bool
depends on (ESP32S3_I2C0 || ESP32S3_I2C1) || (ESP32_I2C0 || ESP32_I2C1) || (ESP32S2_I2C0 || ESP32S2_I2C1)
default n

config ESPRESSIF_I2C_BITBANG
bool "I2C Bitbang"
default n
select I2C_BITBANG
select ESP32S3_I2C if ARCH_CHIP_ESP32S3
select ESP32S2_I2C if ARCH_CHIP_ESP32S2
select ESP32_I2C if ARCH_CHIP_ESP32
select I2C
select I2C_BITBANG
bool "I2C Bitbang"
default n
select I2C_BITBANG
select ESP32S3_I2C if ARCH_CHIP_ESP32S3
select ESP32S2_I2C if ARCH_CHIP_ESP32S2
select ESP32_I2C if ARCH_CHIP_ESP32
select I2C
select I2C_BITBANG
---help---
Software implemented I2C peripheral with GPIOs. Suggested to use if I2C peripherals are already in use.

config ESPRESSIF_SPI_PERIPH
bool
depends on (ESP32S3_SPI2 || ESP32S3_SPI3) || (ESP32_SPI2 || ESP32_SPI3) || (ESP32S2_SPI2 || ESP32S2_SPI3)
depends on (ESP32S3_SPI2 || ESP32S3_SPI3) || (ESP32_SPI2 || ESP32_SPI3) || (ESP32S2_SPI2 || ESP32S2_SPI3)
default n

config ESPRESSIF_SPI_BITBANG
Expand Down Expand Up @@ -109,14 +109,14 @@ menu "I2C bitbang configuration"
depends on ESPRESSIF_I2C_BITBANG

config ESPRESSIF_I2C_BITBANG_SCLPIN
int "I2C Bitbang SCL Pin"
default 0
range 0 21
int "I2C Bitbang SCL Pin"
default 0
range 0 21

config ESPRESSIF_I2C_BITBANG_SDAPIN
int "I2C Bitbang SDA Pin"
default 1
range 0 21
int "I2C Bitbang SDA Pin"
default 1
range 0 21

endmenu # I2C bitbang configuration

Expand Down
Loading