(nuttx) branch master updated: [Kconfig] Fix Kconfig style

2025-06-18 Thread raiden00
This is an automated email from the ASF dual-hosted git repository.

raiden00 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 2e5160ed0d [Kconfig] Fix Kconfig style
2e5160ed0d is described below

commit 2e5160ed0dedf2d1400136871601224a53219018
Author: simbit18 
AuthorDate: Wed Jun 18 15:37:29 2025 +0200

[Kconfig] Fix Kconfig style

Remove spaces from Kconfig
Add TABs
Add comments
---
 arch/arm/src/stm32f0l0g0/Kconfig | 70 
 1 file changed, 35 insertions(+), 35 deletions(-)

diff --git a/arch/arm/src/stm32f0l0g0/Kconfig b/arch/arm/src/stm32f0l0g0/Kconfig
index 5284515f05..4eb19ca36c 100644
--- a/arch/arm/src/stm32f0l0g0/Kconfig
+++ b/arch/arm/src/stm32f0l0g0/Kconfig
@@ -1177,7 +1177,7 @@ config STM32F0L0G0_FLASH_OVERRIDE_G
 config STM32F0L0G0_FLASH_OVERRIDE_I
bool "I 2048KiB"
 
-endchoice
+endchoice # Override Flash Size Designator
 
 config STM32F0L0G0_STM32F0
bool
@@ -1566,7 +1566,7 @@ config STM32F0L0G0_SYSTICK_CORECLK
 config STM32F0L0G0_SYSTICK_CORECLK_DIV16
bool "Cortex-M0 core clock divided by 16"
 
-endchoice
+endchoice # SysTick clock source
 
 config ARCH_BOARD_STM32F0G0L0_CUSTOM_CLOCKCONFIG
bool "Custom clock configuration"
@@ -1708,8 +1708,8 @@ config STM32F0L0G0_HAVE_ADC1_DMA
default n
 
 config STM32F0L0G0_HAVE_ADC_OVERSAMPLE
-bool
-default STM32F0L0G0_STM32L0 || STM32F0L0G0_STM32G0 || STM32F0L0G0_STM32C0
+   bool
+   default STM32F0L0G0_STM32L0 || STM32F0L0G0_STM32G0 || 
STM32F0L0G0_STM32C0
 
 config STM32F0L0G0_HAVE_CEC
bool
@@ -2112,7 +2112,7 @@ config STM32F0L0G0_WWDG
default n
select WATCHDOG
 
-endmenu
+endmenu # STM32 Peripheral Support
 
 config STM32F0L0G0_COMP
bool
@@ -3585,9 +3585,9 @@ config STM32F0L0G0_PM_SERIAL_ACTIVITY
PM activity reported to power management logic on every serial
interrupt.
 
-endif
+endif # PM
 
-endmenu
+endmenu # U[S]ART Configuration
 
 menu "ADC Configuration"
depends on STM32F0L0G0_ADC
@@ -3643,41 +3643,41 @@ config STM32F0L0G0_ADC1_DMA_CFG
0 - ADC1 DMA in One Shot Mode, 1 - ADC1 DMA in Circular Mode
 
 config STM32F0L0G0_ADC_OVERSAMPLE
-bool "Enable ADC hardware oversampling support"
-depends on STM32F0L0G0_ADC1 && STM32F0L0G0_HAVE_ADC_OVERSAMPLE
-default n
----help---
-Enable the on-chip ADC oversampling/accumulation block (CFGR2.OVSE).
-Only STM32G0 and STM32L0 series include this hardware block.
+   bool "Enable ADC hardware oversampling support"
+   depends on STM32F0L0G0_ADC1 && STM32F0L0G0_HAVE_ADC_OVERSAMPLE
+   default n
+   ---help---
+   Enable the on-chip ADC oversampling/accumulation block 
(CFGR2.OVSE).
+   Only STM32G0 and STM32L0 series include this hardware block.
 
 if STM32F0L0G0_ADC_OVERSAMPLE
 
 config STM32F0L0G0_ADC_TOVS
-bool "Enable triggered oversampling (CFGR2.TOVS)"
-default n
----help---
-If set, oversampling will only occur when a trigger event occurs.
-If not set, oversampling occurs continuously (TOVS=0).
+   bool "Enable triggered oversampling (CFGR2.TOVS)"
+   default n
+   ---help---
+   If set, oversampling will only occur when a trigger event 
occurs.
+   If not set, oversampling occurs continuously (TOVS=0).
 
 config STM32F0L0G0_ADC_OVSR
-int "Oversampling ratio (CFGR2.OVSR)"
-default 0
-range 0 7
----help---
-Sets the oversampling ratio as 2^(OVSR+1). For example:
-  0 → 2×
-  1 → 4×
-  2 → 8×
-  ...
-  7 → 256×
+   int "Oversampling ratio (CFGR2.OVSR)"
+   default 0
+   range 0 7
+   ---help---
+   Sets the oversampling ratio as 2^(OVSR+1). For example:
+   0 -> 2×
+   1 -> 4×
+   2 -> 8×
+   ...
+   7 -> 256×
 
 config STM32F0L0G0_ADC_OVSS
-int "Oversampling right-shift bits (CFGR2.OVSS)"
-default 0
-range 0 8
----help---
-Sets how many bits the accumulated result is right-shifted.
-Max of 8-bits.
+   int "Oversampling right-shift bits (CFGR2.OVSS)"
+   default 0
+   range 0 8
+   ---help---
+   Sets how many bits the accumulated result is right-shifted.
+   Max of 8-bits.
 
 endif # STM32F0L0G0_ADC_OVERSAMPLE
 
@@ -3698,7 +3698,7 @@ config STM32F0L0G0_ADC1_EXTSEL
---help---
Enable EXTSEL for ADC1.
 
-endmenu
+endmenu # ADC Configuration
 
 menu "SPI Configuration"
depends on STM32F0L0G0_SPI



(nuttx) branch master updated: [Kconfig]: Fix Kconfig style

2025-05-14 Thread xiaoxiang
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 ea47f0cf42 [Kconfig]: Fix Kconfig style
ea47f0cf42 is described below

commit ea47f0cf4291c698971ca44e054a79041354c23b
Author: simbit18 
AuthorDate: Wed May 14 11:32:24 2025 +0200

[Kconfig]: Fix Kconfig style

Remove spaces from Kconfig files
Add comments
Add TABs

Signed-off-by: simbit18 
---
 arch/xtensa/src/common/espressif/Kconfig | 14 +++---
 drivers/video/Kconfig| 33 
 drivers/wireless/lpwan/Kconfig   |  2 +-
 3 files changed, 25 insertions(+), 24 deletions(-)

diff --git a/arch/xtensa/src/common/espressif/Kconfig 
b/arch/xtensa/src/common/espressif/Kconfig
index 9645c71f76..cdbbd1b787 100644
--- a/arch/xtensa/src/common/espressif/Kconfig
+++ b/arch/xtensa/src/common/espressif/Kconfig
@@ -960,10 +960,10 @@ menu "Wi-Fi Configuration"
depends on ESPRESSIF_WIFI
 
 config ESPRESSIF_WLAN
-bool "WLAN"
+   bool "WLAN"
default y
---help---
-   Enable WLAN support
+   Enable WLAN support
 
 menu "ESP WPA-Supplicant"
 
@@ -1170,11 +1170,11 @@ config ESPRESSIF_ESPNOW_PKTRADIO_PANID
PANID for espnow pktradio.
 
 config ESPRESSIF_ESPNOW_PKTRADIO_PANADDR
-   hex "ESPNOW pktradio node address"
-   range 0x0 0x
-   default 0xfffe
-   ---help---
-PANADDRESS for espnow pktradio.
+   hex "ESPNOW pktradio node address"
+   range 0x0 0x
+   default 0xfffe
+   ---help---
+   PANADDRESS for espnow pktradio.
 
 endif #ESPRESSIF_ESPNOW_PKTRADIO
 
diff --git a/drivers/video/Kconfig b/drivers/video/Kconfig
index 66a4c915c2..ce2437f0bd 100644
--- a/drivers/video/Kconfig
+++ b/drivers/video/Kconfig
@@ -57,7 +57,7 @@ config VIDEO_FB_NPOLLWAITERS
default 2
 
 config VIDEO_FB_SPLASHSCREEN
-  bool "Enable Splashscreen when Framebuffer Driver is registered"
+   bool "Enable Splashscreen when Framebuffer Driver is registered"
depends on VIDEO_FB
default n
---help---
@@ -75,7 +75,6 @@ config VIDEO_FB_SPLASHSCREEN
  to create custom splashscreens - note the tool restricts the 
number of colours
  to 256.
 
-
 if VIDEO_FB_SPLASHSCREEN
 
 menu "Splashscreen Image Selection and Configuration"
@@ -96,7 +95,7 @@ config VIDEO_FB_SPLASHSCREEN_CUSTOM
build.
Typically this would be a source file of an out-of-tree custom 
board.
 
-endchoice
+endchoice # Select Splashscreen Image Source
 
 choice
prompt "Select NXlogo bitmap size to use"
@@ -111,7 +110,8 @@ config VIDEO_FB_SPLASHSCREEN_NXLOGO_160
 
 config VIDEO_FB_SPLASHSCREEN_NXLOGO_80
bool "80x80 pixels"
-endchoice
+
+endchoice # Select NXlogo bitmap size to use
 
 choice
prompt "Select Splashscreen Bits-per-pixel (BPP)"
@@ -132,7 +132,7 @@ config VIDEO_FB_SPLASHSCREEN_MONO
 config VIDEO_FB_SPLASHSCREEN_GREY
bool "Greyscale (8BPP)"
 
-endchoice
+endchoice # Select Splashscreen Bits-per-pixel (BPP)
 
 config VIDEO_FB_SPLASHSCREEN_BG_COLOUR
hex "Hex (A)RGB background colour for splashscreen"
@@ -148,7 +148,7 @@ config VIDEO_FB_SPLASHSCREEN_CLR_ON_EXIT
bool "Clear Framebuffer memory when driver registration is complete"
default y
 
-endmenu # "Splashscreen Image Selection and Configuration"
+endmenu # Splashscreen Image Selection and Configuration
 
 endif # VIDEO_FB_SPLASHSCREEN
 
@@ -179,7 +179,7 @@ config GOLDFISH_GPU_FB_RGB565
 config GOLDFISH_GPU_FB_BGRA
bool "BGRA"
 
-endchoice
+endchoice # Select Goldfish GPU Framebuffer format
 
 config GOLDFISH_GPU_FB_PRIORITY
int "Goldfish GPU Framebuffer vsync task priority"
@@ -282,7 +282,8 @@ config VIDEO_SCENE_TEXT
default y
---help---
Enable text scene
-endif
+
+endif # VIDEO_STREAM
 
 config VIDEO_MAX7456
bool "Maxim 7456 Monochrome OSD"
@@ -305,7 +306,7 @@ config VIDEO_ISX012_REGDEBUG
---help---
Enable to read registers of ISX012 for test.
 
-endif
+endif # VIDEO_ISX012
 
 config VIDEO_ISX019
bool "ISX019 Image sensor"
@@ -331,7 +332,7 @@ config VIDEO_ISX019_DOL2
---help---
DOL2 is the mode that combines 2 images with different exposure.
 
-endchoice
+endchoice # HDR mode selection
 
 config VIDEO_ISX019_INITIAL_JPEG_QUALITY
int "Initial JPEG quality"
@@ -354,7 +355,7 @@ config VIDEO_ISX019_REGDEBUG
---help---
Enable to read registers of ISX019 for test.
 
-endif
+endif # VIDEO_ISX019
 
 config VIDEO_OV2640
bool "OV2640 camera chip"
@@ -385,7 +386,7 @@ config OV2640_RGB565_COLORFMT
 config OV2640_YUV422_COLORFMT
bool "YUV422"
 
-endchoice
+endc