This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git
The following commit(s) were added to refs/heads/master by this push:
new 3442af4a19 Fix Kconfig style
3442af4a19 is described below
commit 3442af4a19816b56ead0a87475dd8666c54ecda9
Author: simbit18 <[email protected]>
AuthorDate: Sat Dec 9 16:35:33 2023 +0100
Fix Kconfig style
Remove extra TABs
Add comments
---
arch/arm/Kconfig | 2 +-
arch/arm/src/at32/Kconfig | 32 +++++++++++++-------------
arch/arm/src/cxd56xx/Kconfig | 31 ++++++++++++++++---------
arch/arm/src/efm32/Kconfig | 9 +++++---
arch/arm/src/gd32f4/Kconfig | 15 ++++++------
arch/arm/src/lc823450/Kconfig | 13 +++++++----
arch/arm/src/nrf52/Kconfig | 8 +++----
arch/arm/src/stm32/Kconfig | 22 +++++++++---------
boards/xtensa/esp32s2/common/Kconfig | 44 ++++++++++++++++++------------------
drivers/crypto/Kconfig | 30 ++++++++++++++----------
10 files changed, 114 insertions(+), 92 deletions(-)
diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
index 4e3279f103..750caf44a4 100644
--- a/arch/arm/Kconfig
+++ b/arch/arm/Kconfig
@@ -1347,7 +1347,7 @@ config ARM_SEMIHOSTING_HOSTFS_CACHE_COHERENCE
---help---
Flush & Invalidte cache before & after bkpt instruction.
-endif
+endif # ARM_SEMIHOSTING_HOSTFS
if SCHED_BACKTRACE
diff --git a/arch/arm/src/at32/Kconfig b/arch/arm/src/at32/Kconfig
index 296fa06380..a224009283 100644
--- a/arch/arm/src/at32/Kconfig
+++ b/arch/arm/src/at32/Kconfig
@@ -77,13 +77,13 @@ choice
ends with a number or letter that designates the FLASH size.
Designator Size in KiB
- 8 64
- B 128
- C 256
- E 512
- G 1024
- I 2048
- M 4032
+ 8 64
+ B 128
+ C 256
+ E 512
+ G 1024
+ I 2048
+ M 4032
This configuration option defaults to using the configuration
based
on that designator or the default smaller size if there is no
last
@@ -6855,7 +6855,7 @@ config AT32_PM_SERIAL_ACTIVITY
PM activity reported to power management logic on every serial
interrupt.
-endif
+endif # PM
endmenu # U[S]ART Configuration
@@ -7518,7 +7518,7 @@ config AT32_TIM1_QEPSC
This prescaler divides the number of recorded encoder pulses,
limiting the count rate at the expense of resolution.
-endif
+endif # AT32_TIM1_QE
config AT32_TIM2_QE
bool "TIM2 QE"
@@ -7536,7 +7536,7 @@ config AT32_TIM2_QEPSC
This prescaler divides the number of recorded encoder pulses,
limiting the count rate at the expense of resolution.
-endif
+endif # AT32_TIM2_QE
config AT32_TIM3_QE
bool "TIM3 QE"
@@ -7554,7 +7554,7 @@ config AT32_TIM3_QEPSC
This prescaler divides the number of recorded encoder pulses,
limiting the count rate at the expense of resolution.
-endif
+endif # AT32_TIM3_QE
config AT32_TIM4_QE
bool "TIM4 QE"
@@ -7572,7 +7572,7 @@ config AT32_TIM4_QEPSC
This prescaler divides the number of recorded encoder pulses,
limiting the count rate at the expense of resolution.
-endif
+endif # AT32_TIM4_QE
config AT32_TIM5_QE
bool "TIM5 QE"
@@ -7590,7 +7590,7 @@ config AT32_TIM5_QEPSC
This prescaler divides the number of recorded encoder pulses,
limiting the count rate at the expense of resolution.
-endif
+endif # AT32_TIM5_QE
config AT32_TIM8_QE
bool "TIM8 QE"
@@ -7608,7 +7608,7 @@ config AT32_TIM8_QEPSC
This prescaler divides the number of recorded encoder pulses,
limiting the count rate at the expense of resolution.
-endif
+endif # AT32_TIM8_QE
config AT32_QENCODER_FILTER
bool "Enable filtering on AT32 QEncoder input"
@@ -7640,7 +7640,7 @@ config AT32_QENCODER_SAMPLE_FDTS_16
config AT32_QENCODER_SAMPLE_FDTS_32
bool "fDTS/32"
-endchoice
+endchoice # Input channel sampling frequency
choice
depends on AT32_QENCODER_FILTER
@@ -7671,7 +7671,7 @@ config AT32_QENCODER_SAMPLE_EVENT_8
depends on !AT32_QENCODER_SAMPLE_FDTS
bool "8"
-endchoice
+endchoice # Input channel event count
endmenu
diff --git a/arch/arm/src/cxd56xx/Kconfig b/arch/arm/src/cxd56xx/Kconfig
index 7a29504596..8d3b7c27b3 100644
--- a/arch/arm/src/cxd56xx/Kconfig
+++ b/arch/arm/src/cxd56xx/Kconfig
@@ -83,7 +83,7 @@ config CXD56_PMIC_INT
---help---
Enable PMIC interrupt.
-endif
+endif # CXD56_PMIC
config CXD56_CPUFIFO
bool
@@ -125,7 +125,8 @@ config CXD56_FARAPI_VERSION_FAILED_PANIC
default n
---help---
If the version mismatch is detected, do PANIC() to stop the
system.
-endif
+
+endif # CXD56_FARAPI_VERSION_CHECK
config CXD56_FARAPI_DEBUG
bool "Debug Far API"
@@ -290,7 +291,8 @@ config CXD56_CHARGER_TEMP_PRECISE
Get temperature precisely. If this option is enabled, driver
calculate precisely
from register value to degrees Celsius.
This option requires libm.
-endif
+
+endif # CXD56_CHARGER
comment "NuttX style Audio Driver Support"
@@ -390,7 +392,7 @@ config CXD56_UART0_FLOWCONTROL
---help---
Enable CXD56 UART0 RTS flow control
-endif
+endif # CXD56_UART0
config CXD56_UART1
bool "UART1"
@@ -538,7 +540,8 @@ config CXD56_SPI5_PINMAP_SDIO
bool "SPI5 pin assign to SDIO"
---help---
SPI5 assigns to the shared pins with SDIO.
-endchoice
+
+endchoice # SPI5 pin configuration
config CXD56_DMAC_SPI5_TX
bool "DMAC support for SPI5 TX"
@@ -1113,7 +1116,8 @@ config CXD56_SCU_XOSC_DIV
int "SCU XOSC predivider"
default 2
range 1 4
-endif
+
+endif # CXD56_SCU_XOSC
choice
prompt "SCU32K clock source"
@@ -1124,7 +1128,8 @@ config CXD56_SCU32K_RCRTC
config CXD56_SCU32K_RTC
bool "RTC"
-endchoice
+
+endchoice # SCU32K clock source
config CXD56_SCU_DEBUG
bool "SCU Debug"
@@ -1151,6 +1156,7 @@ config CXD56_UDMAC
select ARCH_DMA
---help---
Use DMAC for reading sensing data from SCU FIFO.
+
endif # CXD56_SCU
config CXD56_CISIF
@@ -1380,7 +1386,8 @@ config CXD56_GNSS_1PPS_PIN_HIF_IRQ_OUT
bool "Use PIN_HIF_IRQ_OUT"
---help---
GNSS 1PPS output from PIN_HIF_IRQ_OUT pin.
-endchoice
+
+endchoice # GNSS 1PPS output
config CXD56_GNSS_DEBUG_FEATURE
bool "GNSS debug feature"
@@ -1398,13 +1405,14 @@ config CXD56_GNSS_DEBUG_INFO
endif # CXD56_GNSS_DEBUG_FEATURE
-endmenu
+endmenu # GNSS settings
+
config CXD56_GEOFENCE
bool "Geofence Support"
default y
depends on CXD56_GNSS
-endif
+endif # CXD56_GNSS
config CXD56_TESTSET
bool "Use custom testset for spinlock"
@@ -1419,7 +1427,7 @@ config CXD56_TESTSET_WITH_HWSEM
bool "Use custom testset based on hardware semaphore"
default !CXD56_USE_SYSBUS
-endif
+endif # CXD56_TESTSET
config CXD56_USE_SYSBUS
bool "Use the system bus for the data section"
@@ -1427,4 +1435,5 @@ config CXD56_USE_SYSBUS
select ARCH_USE_TEXT_HEAP if ELF
---help---
To make ldrex/strex work correctly, this option must be enabled
+
endmenu
diff --git a/arch/arm/src/efm32/Kconfig b/arch/arm/src/efm32/Kconfig
index ea6838fab8..f3e60230dd 100644
--- a/arch/arm/src/efm32/Kconfig
+++ b/arch/arm/src/efm32/Kconfig
@@ -50,7 +50,7 @@ config ARCH_CHIP_EFM32GG990F1024
This chip is a Giant Gecko with 1024KiB flash and 128KiB RAM in
a
BGA112 package.
-endchoice
+endchoice # EFM32 Chip Selection
# These hidden selections represent automatically selected MCU families and,
# in turn, select general capabilities of the MCU family
@@ -250,7 +250,7 @@ config EFM32_DMA_ALTDSEC
---help---
Enable support for alternate descriptors. Not fully
implemented.
-endif
+endif # EFM32_DMA
choice
prompt "USART0 Mode"
@@ -419,6 +419,7 @@ config LEUART1_2STOP
endmenu # LEUART1 Configuration
if EFM32_USART_ISSPI
+
menu "SPI Configuration"
config EFM32_SPI_DMA
@@ -449,7 +450,9 @@ config EFM32_SPI_DMA_MINSIZE
based transfers.
endif # EFM32_SPI_DMA
+
endmenu # SPI Configuration
+
endif # EFM32_USART_ISSPI
menu "USB FS Host Configuration"
@@ -485,7 +488,7 @@ config EFM32_OTGFS_SOFINTR
---help---
Enable SOF interrupts. Why would you ever want to do that?
-endmenu
+endmenu # USB FS Host Configuration
config EFM32_TIMER0
bool "TIMER0"
diff --git a/arch/arm/src/gd32f4/Kconfig b/arch/arm/src/gd32f4/Kconfig
index 56a5b53697..c47c8d8021 100644
--- a/arch/arm/src/gd32f4/Kconfig
+++ b/arch/arm/src/gd32f4/Kconfig
@@ -85,10 +85,10 @@ choice
ends with a number or letter that designates the FLASH size.
Designator Size in KiB
- E 512
- G 1024
- I 2048
- K 3072
+ E 512
+ G 1024
+ I 2048
+ K 3072
This configuration option defaults to using the configuration
based
on that designator or the default smaller size if there is no
last
@@ -2050,7 +2050,7 @@ config GD32F4_PM_SERIAL_ACTIVITY
PM activity reported to power management logic on every serial
interrupt.
-endif
+endif # PM
endmenu # USART Configuration
@@ -2161,6 +2161,7 @@ config GD32F4_RTC_HXTALCLOCK
The RTC clock source is the HXTAL clock, divided down to 1MHz.
endchoice # RTC clock source
+
endmenu # RTC configuration
@@ -2196,7 +2197,7 @@ config GD32F4_SDIO_WIDTH_D1_ONLY
---help---
Select 1-bit transfer mode. Default: 4-bit transfer mode.
-endmenu
+endmenu # SDIO Configuration
menu "SPI Configuration"
depends on GD32F4_SPI
@@ -2391,7 +2392,7 @@ config GD32F4_MII_EXTCLK
MII clock is provided by external clock. And not use CKOUT for
MII clock.
-endchoice
+endchoice # MII clock configuration
config GD32F4_AUTO_NEGOTIATION
bool "Use autonegotiation"
diff --git a/arch/arm/src/lc823450/Kconfig b/arch/arm/src/lc823450/Kconfig
index c63880c00a..2ecea27d3b 100644
--- a/arch/arm/src/lc823450/Kconfig
+++ b/arch/arm/src/lc823450/Kconfig
@@ -40,13 +40,16 @@ config LC823450_SPIFI
default n
if LC823450_SPIFI
+
config LC823450_SPIFI_QUADIO
bool "SPIFI 4bit access"
default y
+
config LC823450_SPIFI_BOOT
bool "Boot from an external SPI flash"
default n
-endif
+
+endif # LC823450_SPIFI
config LC823450_SDIF
bool "SD/eMMC driver"
@@ -67,7 +70,7 @@ config LC823450_SDC_DMA
default y
select ARCH_DMA
-endif
+endif # LC823450_SPIFI
config LC823450_MTD
bool "LC823450 MTD devices"
@@ -186,7 +189,7 @@ config LC823450_PWM1_CH1
bool "MTM1-Ch1 PWM device"
default n
-endif
+endif # PWM
choice
prompt "HS driver current boost"
@@ -200,7 +203,7 @@ config LC823450_USBDEV_CUSTOM_HSDSEL_5
config LC823450_USBDEV_CUSTOM_HSDSEL_10
bool "10% boost"
-endchoice
+endchoice # HS driver current boost
config LC823450_LSISTBY
bool "LSI Standby"
@@ -222,4 +225,4 @@ config DVFS
bool "Dynamic Voltage and Frequency Scaling"
default n
-endmenu
+endmenu # LC823450 Peripheral Support
diff --git a/arch/arm/src/nrf52/Kconfig b/arch/arm/src/nrf52/Kconfig
index f2ac065712..2bde7f3104 100644
--- a/arch/arm/src/nrf52/Kconfig
+++ b/arch/arm/src/nrf52/Kconfig
@@ -355,7 +355,7 @@ config NRF52_LFCLK_RC
config NRF52_LFCLK_SYNTH
bool "Synthesized from HFCLK"
-endchoice
+endchoice # LFCLK source
endif # NRF52_USE_LFCLK
@@ -397,7 +397,7 @@ config NRF52_SYSTIMER_RTC
---help---
Use RTC timer in tickless mode.
-endchoice
+endchoice # System Timer Source
if NRF52_SYSTIMER_RTC
@@ -409,7 +409,7 @@ config NRF52_SYSTIMER_RTC_INSTANCE
---help---
Which RTC instance to use to drive the system timer
-endif
+endif # NRF52_SYSTIMER_RTC
endmenu # System Timer
@@ -636,7 +636,7 @@ config NRF52_SAADC_TIMER_CC
default 0
range 80 2047
-endif #NRF52_SAADC_TIMER
+endif # NRF52_SAADC_TIMER
config NRF52_SAADC_OVERSAMPLE
int "SAADC oversample"
diff --git a/arch/arm/src/stm32/Kconfig b/arch/arm/src/stm32/Kconfig
index 3e79c71310..acd4bcbce3 100644
--- a/arch/arm/src/stm32/Kconfig
+++ b/arch/arm/src/stm32/Kconfig
@@ -1216,17 +1216,17 @@ choice
ends with a number or letter that designates the FLASH size.
Designator Size in KiB
- 4 16
- 6 32
- 8 64
- B 128
- Z 192
- C 256
- D 384
- E 512
- F 768
- G 1024
- I 2048
+ 4 16
+ 6 32
+ 8 64
+ B 128
+ Z 192
+ C 256
+ D 384
+ E 512
+ F 768
+ G 1024
+ I 2048
This configuration option defaults to using the configuration
based
on that designator or the default smaller size if there is no
last
diff --git a/boards/xtensa/esp32s2/common/Kconfig
b/boards/xtensa/esp32s2/common/Kconfig
index a6ea5f07f5..b26f41558b 100644
--- a/boards/xtensa/esp32s2/common/Kconfig
+++ b/boards/xtensa/esp32s2/common/Kconfig
@@ -22,34 +22,34 @@ choice ESP32S2_SPIFLASH_FS
bring-up.
If not selected, the MTD will be registered as a device node on
/dev.
- config ESP32S2_SPIFLASH_SMARTFS
- bool "SmartFS"
- select FS_SMARTFS
- select MTD_SMART
- depends on !ESP32S2_SECURE_FLASH_ENC_ENABLED
+config ESP32S2_SPIFLASH_SMARTFS
+ bool "SmartFS"
+ select FS_SMARTFS
+ select MTD_SMART
+ depends on !ESP32S2_SECURE_FLASH_ENC_ENABLED
- comment "SmartFS not supported with Flash Encryption"
- depends on ESP32S2_SECURE_FLASH_ENC_ENABLED
+comment "SmartFS not supported with Flash Encryption"
+ depends on ESP32S2_SECURE_FLASH_ENC_ENABLED
- config ESP32S2_SPIFLASH_NXFFS
- bool "NXFFS"
- select FS_NXFFS
- depends on !ESP32S2_SECURE_FLASH_ENC_ENABLED
+config ESP32S2_SPIFLASH_NXFFS
+ bool "NXFFS"
+ select FS_NXFFS
+ depends on !ESP32S2_SECURE_FLASH_ENC_ENABLED
- comment "NXFFS not supported with Flash Encryption"
- depends on ESP32S2_SECURE_FLASH_ENC_ENABLED
+comment "NXFFS not supported with Flash Encryption"
+ depends on ESP32S2_SECURE_FLASH_ENC_ENABLED
- config ESP32S2_SPIFLASH_SPIFFS
- bool "SPIFFS"
- select FS_SPIFFS
- depends on !ESP32S2_SECURE_FLASH_ENC_ENABLED
+config ESP32S2_SPIFLASH_SPIFFS
+ bool "SPIFFS"
+ select FS_SPIFFS
+ depends on !ESP32S2_SECURE_FLASH_ENC_ENABLED
- comment "SPIFFS not supported with Flash Encryption"
- depends on ESP32S2_SECURE_FLASH_ENC_ENABLED
+comment "SPIFFS not supported with Flash Encryption"
+ depends on ESP32S2_SECURE_FLASH_ENC_ENABLED
- config ESP32S2_SPIFLASH_LITTLEFS
- bool "LittleFS"
- select FS_LITTLEFS
+config ESP32S2_SPIFLASH_LITTLEFS
+ bool "LittleFS"
+ select FS_LITTLEFS
endchoice
diff --git a/drivers/crypto/Kconfig b/drivers/crypto/Kconfig
index 668803e250..00b4d3f915 100644
--- a/drivers/crypto/Kconfig
+++ b/drivers/crypto/Kconfig
@@ -73,6 +73,7 @@ config DEV_URANDOM_ARCH
implementation.
endchoice # /dev/urandom algorithm
+
endif # DEV_URANDOM
menuconfig DEV_SE05X
@@ -100,7 +101,7 @@ config DEV_SE05X_SCP03
config DEV_SE05X_PLAIN
bool "plain communication"
-endchoice
+endchoice # Channel communication interface
config DEV_SE05X_SCP03_KEY_FILE
string "SCP03 keys"
@@ -118,16 +119,21 @@ choice SE05X_LOG_LEVEL
---help---
The SE05x log is divided into the following levels:
ERROR,WARNING,INFO,DEBUG.
- config SE05X_LOG_NONE
- bool "No output"
- config SE05X_LOG_ERROR
- bool "Error"
- config SE05X_LOG_WARNING
- bool "Warning"
- config SE05X_LOG_INFO
- bool "Info"
- config SE05X_LOG_DEBUG
- bool "Debug"
-endchoice
+config SE05X_LOG_NONE
+ bool "No output"
+
+config SE05X_LOG_ERROR
+ bool "Error"
+
+config SE05X_LOG_WARNING
+ bool "Warning"
+
+config SE05X_LOG_INFO
+ bool "Info"
+
+config SE05X_LOG_DEBUG
+ bool "Debug"
+
+endchoice # SE05x debug log level
endif #DEV_SE05X