]> granicus.if.org Git - esp-idf/commitdiff
Kconfig: use 4 spaces to instead 1 tab
authorWu Jian Gang <wujiangang@espressif.com>
Wed, 28 Sep 2016 05:24:58 +0000 (13:24 +0800)
committerWu Jian Gang <wujiangang@espressif.com>
Wed, 28 Sep 2016 05:24:58 +0000 (13:24 +0800)
In some Kconfig file, both 4 spaces and 1 tab are used mix, let's just
use 4 space, it will be clean in some editor.

Kconfig
components/bt/Kconfig
components/esp32/Kconfig
components/freertos/Kconfig
components/log/Kconfig
components/lwip/Kconfig
components/mbedtls/Kconfig
components/spi_flash/Kconfig

diff --git a/Kconfig b/Kconfig
index 73770a79a6bd7f92f1568147227595128de25b3b..11ea099de2c469af97d80aef68f0b251b38d9a32 100644 (file)
--- a/Kconfig
+++ b/Kconfig
@@ -7,18 +7,18 @@ mainmenu "Espressif IoT Development Framework Configuration"
 
 menu "SDK tool configuration"
 config TOOLPREFIX
-       string "Compiler toolchain path/prefix"
-       default "xtensa-esp32-elf-"
-       help
-               The prefix/path that is used to call the toolchain. The default setting assumes
-               a crosstool-ng gcc setup that is in your PATH.
+    string "Compiler toolchain path/prefix"
+    default "xtensa-esp32-elf-"
+    help
+        The prefix/path that is used to call the toolchain. The default setting assumes
+        a crosstool-ng gcc setup that is in your PATH.
 
 config PYTHON
     string "Python 2 interpreter"
-       default "python"
-       help
-           The executable name/path that is used to run python. On some systems Python 2.x
-               may need to be invoked as python2.
+    default "python"
+    help
+        The executable name/path that is used to run python. On some systems Python 2.x
+        may need to be invoked as python2.
 endmenu
 
 source "$COMPONENT_KCONFIGS_PROJBUILD"
index e397214d22871d0a61ca002b4da0bc3534247a6f..e43ff864de13b5e3706440b1f0b30be46e86e8d9 100644 (file)
@@ -3,27 +3,27 @@ visible if MEMMAP_BT
 
 
 config BT_ENABLED
-       bool
-       depends on ESP32_ENABLE_STACK_BT
-       help
-               This compiles in the low-level BT stack.
+    bool
+    depends on ESP32_ENABLE_STACK_BT
+    help
+        This compiles in the low-level BT stack.
 
 #config BT_BTLE
-#      bool "Enable BTLE"
-#      depends on BT_ENABLED
-#      help
-#              This compiles BTLE support
+#    bool "Enable BTLE"
+#    depends on BT_ENABLED
+#    help
+#        This compiles BTLE support
 #
 #config BT_BT
-#      bool "Enable classic BT"
-#      depends on BT_ENABLED
-#      help
-#              This enables classic BT support
+#    bool "Enable classic BT"
+#    depends on BT_ENABLED
+#    help
+#        This enables classic BT support
 
 endmenu
 
 # Memory reserved at start of DRAM for Bluetooth stack
 config BT_RESERVE_DRAM
     hex
-       default 0x10000 if MEMMAP_BT
-       default 0
+    default 0x10000 if MEMMAP_BT
+    default 0
index b5754deed5be3e0f71d1c1b8047d7d23a708ae89..535df23eb5e824dc3f519345c74cd8e85ec5228f 100644 (file)
@@ -84,7 +84,7 @@ config WIFI_ENABLED
     help
         This compiles in the low-level WiFi stack.
 
-               Temporarily, this option is not compatible with BT stack.
+        Temporarily, this option is not compatible with BT stack.
 
 config SYSTEM_EVENT_QUEUE_SIZE
     int "System event queue size"
@@ -107,37 +107,37 @@ config MAIN_TASK_STACK_SIZE
 
 
 config NEWLIB_STDOUT_ADDCR
-       bool "Standard-out output adds carriage return before newline"
-       default y
-       help
-               Most people are used to end their printf strings with a newline. If this
-               is sent as is to the serial port, most terminal programs will only move the
-               cursor one line down, not also move it to the beginning of the line. This
-               is usually done by an added CR character. Enabling this will make the
-               standard output code automatically add a CR character before a LF.
+    bool "Standard-out output adds carriage return before newline"
+    default y
+    help
+        Most people are used to end their printf strings with a newline. If this
+        is sent as is to the serial port, most terminal programs will only move the
+        cursor one line down, not also move it to the beginning of the line. This
+        is usually done by an added CR character. Enabling this will make the
+        standard output code automatically add a CR character before a LF.
 
 config ULP_COPROC_ENABLED
     bool "Enable Ultra Low Power (ULP) Coprocessor"
     default "n"
     help
-               Set to 'y' if you plan to load a firmware for the coprocessor.
+        Set to 'y' if you plan to load a firmware for the coprocessor.
 
-               If this option is enabled, further coprocessor configuration will appear in the Components menu.
+        If this option is enabled, further coprocessor configuration will appear in the Components menu.
 
 config ULP_COPROC_RESERVE_MEM
-       int "RTC slow memory reserved for coprocessor"
-       default 512
-       range 32 8192
-       depends on ULP_COPROC_ENABLED
-       help
-               Bytes of memory to reserve for ULP coprocessor firmware & data.
+    int "RTC slow memory reserved for coprocessor"
+    default 512
+    range 32 8192
+    depends on ULP_COPROC_ENABLED
+    help
+        Bytes of memory to reserve for ULP coprocessor firmware & data.
 
-               Data is reserved at the beginning of RTC slow memory.
+        Data is reserved at the beginning of RTC slow memory.
 
 # Set CONFIG_ULP_COPROC_RESERVE_MEM to 0 if ULP is disabled
 config ULP_COPROC_RESERVE_MEM
-       int
-       default 0
-       depends on !ULP_COPROC_ENABLED
+    int
+    default 0
+    depends on !ULP_COPROC_ENABLED
 
 endmenu
index d7c306c246ae07d292f1aba4ae81c7ee62805c42..e350e347f3f946f75e1c0045af85251f99663597 100644 (file)
@@ -2,192 +2,192 @@ menu "FreeRTOS"
 
 # This is actually also handled in the ESP32 startup code, not only in FreeRTOS.
 config FREERTOS_UNICORE
-       bool "Run FreeRTOS only on first core"
-       default n
-       help
-               This version of FreeRTOS normally takes control of all cores of 
-               the CPU. Select this if you only want to start it on the first core.
-               This is needed when e.g. another process needs complete control
-               over the second core.
+    bool "Run FreeRTOS only on first core"
+    default n
+    help
+        This version of FreeRTOS normally takes control of all cores of 
+        the CPU. Select this if you only want to start it on the first core.
+        This is needed when e.g. another process needs complete control
+        over the second core.
 
 
 choice FREERTOS_CORETIMER
-       prompt "Xtensa timer to use as the FreeRTOS tick source"
-       default CONFIG_FREERTOS_CORETIMER_0
-       help
-               FreeRTOS needs a timer with an associated interrupt to use as
-               the main tick source to increase counters, run timers and do
-               pre-emptive multitasking with. There are multiple timers available
-               to do this, with different interrupt priorities. Check 
+    prompt "Xtensa timer to use as the FreeRTOS tick source"
+    default CONFIG_FREERTOS_CORETIMER_0
+    help
+        FreeRTOS needs a timer with an associated interrupt to use as
+        the main tick source to increase counters, run timers and do
+        pre-emptive multitasking with. There are multiple timers available
+        to do this, with different interrupt priorities. Check 
 
 config FREERTOS_CORETIMER_0
-       bool "Timer 0 (int 6, level 1)"
-       help
-               Select this to use timer 0
+    bool "Timer 0 (int 6, level 1)"
+    help
+        Select this to use timer 0
 
 config FREERTOS_CORETIMER_1
-       bool "Timer 1 (int 15, level 3)"
-       help
-               Select this to use timer 1
+    bool "Timer 1 (int 15, level 3)"
+    help
+        Select this to use timer 1
 
 config FREERTOS_CORETIMER_2
-       bool "Timer 2 (int 16, level 5)"
-       help
-               Select this to use timer 2
+    bool "Timer 2 (int 16, level 5)"
+    help
+        Select this to use timer 2
 
 endchoice
 
 config FREERTOS_HZ
-       int "Tick rate (Hz)"
-       range 1 10000
-       default 100
-       help
-               Select the tick rate at which FreeRTOS does pre-emptive context switching.
+    int "Tick rate (Hz)"
+    range 1 10000
+    default 100
+    help
+        Select the tick rate at which FreeRTOS does pre-emptive context switching.
 
 choice FREERTOS_CHECK_STACKOVERFLOW
-       prompt "Check for stack overflow"
-       default FREERTOS_CHECK_STACKOVERFLOW_QUICK
-       help
-               FreeRTOS can check for stack overflows in threads and trigger an user function
-               called vApplicationStackOverflowHook when this happens.
+    prompt "Check for stack overflow"
+    default FREERTOS_CHECK_STACKOVERFLOW_QUICK
+    help
+        FreeRTOS can check for stack overflows in threads and trigger an user function
+        called vApplicationStackOverflowHook when this happens.
 
 config FREERTOS_CHECK_STACKOVERFLOW_NONE
-       bool "No checking"
-       help
-               Do not check for stack overflows (configCHECK_FOR_STACK_OVERFLOW=0)
+    bool "No checking"
+    help
+        Do not check for stack overflows (configCHECK_FOR_STACK_OVERFLOW=0)
 
 config FREERTOS_CHECK_STACKOVERFLOW_PTRVAL
-       bool "Check by stack pointer value"
-       help
-               Check for stack overflows on each context switch by checking if
-               the stack pointer is in a valid range. Quick but does not detect
-               stack overflows that happened between context switches
-               (configCHECK_FOR_STACK_OVERFLOW=1)
+    bool "Check by stack pointer value"
+    help
+        Check for stack overflows on each context switch by checking if
+        the stack pointer is in a valid range. Quick but does not detect
+        stack overflows that happened between context switches
+        (configCHECK_FOR_STACK_OVERFLOW=1)
 
 config FREERTOS_CHECK_STACKOVERFLOW_CANARY
-       bool "Check using canary bytes"
-       help
-               Places some magic bytes at the end of the stack area and on each 
-               context switch, check if these bytes are still intact. More thorough
-               than just checking the pointer, but also slightly slower.
-               (configCHECK_FOR_STACK_OVERFLOW=2)
+    bool "Check using canary bytes"
+    help
+        Places some magic bytes at the end of the stack area and on each 
+        context switch, check if these bytes are still intact. More thorough
+        than just checking the pointer, but also slightly slower.
+        (configCHECK_FOR_STACK_OVERFLOW=2)
 endchoice
 
 config FREERTOS_THREAD_LOCAL_STORAGE_POINTERS
-       int "Amount of thread local storage pointers"
-       range 0 256 if !WIFI_ENABLED
-       range 1 256 if WIFI_ENABLED
-       default 1
-       help
-               FreeRTOS has the ability to store per-thread pointers in the task
-               control block. This controls the amount of pointers available;
-               0 turns off this functionality.
+    int "Amount of thread local storage pointers"
+    range 0 256 if !WIFI_ENABLED
+    range 1 256 if WIFI_ENABLED
+    default 1
+    help
+        FreeRTOS has the ability to store per-thread pointers in the task
+        control block. This controls the amount of pointers available;
+        0 turns off this functionality.
 
-               If using the WiFi stack, this value must be at least 1.
+        If using the WiFi stack, this value must be at least 1.
 
 #This still needs to be implemented.
 choice FREERTOS_PANIC
-       prompt "Panic handler behaviour"
-       default FREERTOS_PANIC_PRINT_REBOOT
-       help
-               If FreeRTOS detects unexpected behaviour or an unhandled exception, the panic handler is 
-               invoked. Configure the panic handlers action here.
+    prompt "Panic handler behaviour"
+    default FREERTOS_PANIC_PRINT_REBOOT
+    help
+        If FreeRTOS detects unexpected behaviour or an unhandled exception, the panic handler is 
+        invoked. Configure the panic handlers action here.
 
 config FREERTOS_PANIC_PRINT_HALT
-       bool "Print registers and halt"
-       help
-               Outputs the relevant registers over the serial port and halt the 
-               processor. Needs a manual reset to restart.
+    bool "Print registers and halt"
+    help
+        Outputs the relevant registers over the serial port and halt the 
+        processor. Needs a manual reset to restart.
 
 config FREERTOS_PANIC_PRINT_REBOOT
-       bool "Print registers and reboot"
-       help
-               Outputs the relevant registers over the serial port and immediately
-               reset the processor.
+    bool "Print registers and reboot"
+    help
+        Outputs the relevant registers over the serial port and immediately
+        reset the processor.
 
 config FREERTOS_PANIC_SILENT_REBOOT
-       bool "Silent reboot"
-       help
-               Just resets the processor without outputting anything
+    bool "Silent reboot"
+    help
+        Just resets the processor without outputting anything
 
 config FREERTOS_PANIC_GDBSTUB
-       bool "Invoke GDBStub"
-       help
-               Invoke gdbstub on the serial port, allowing for gdb to attach to it to do a postmortem
-               of the crash.
+    bool "Invoke GDBStub"
+    help
+        Invoke gdbstub on the serial port, allowing for gdb to attach to it to do a postmortem
+        of the crash.
 endchoice
 
 config FREERTOS_DEBUG_OCDAWARE
-       bool "Make exception and panic handlers JTAG/OCD aware"
-       default y
-       help
-               The FreeRTOS panic and unhandled exception handers can detect a JTAG OCD debugger and
-               instead of panicking, have the debugger stop on the offending instruction.
+    bool "Make exception and panic handlers JTAG/OCD aware"
+    default y
+    help
+        The FreeRTOS panic and unhandled exception handers can detect a JTAG OCD debugger and
+        instead of panicking, have the debugger stop on the offending instruction.
 
 choice FREERTOS_ASSERT
-       prompt "FreeRTOS assertions"
-       default FREERTOS_ASSERT_FAIL_ABORT
-       help
-               Failed FreeRTOS configASSERT() assertions can be configured to
-               behave in different ways.
+    prompt "FreeRTOS assertions"
+    default FREERTOS_ASSERT_FAIL_ABORT
+    help
+        Failed FreeRTOS configASSERT() assertions can be configured to
+        behave in different ways.
 
 config FREERTOS_ASSERT_FAIL_ABORT
-       bool "abort() on failed assertions"
-       help
-               If a FreeRTOS configASSERT() fails, FreeRTOS will abort() and
-               halt execution. The panic handler can be configured to handle
-               the outcome of an abort() in different ways.
+    bool "abort() on failed assertions"
+    help
+        If a FreeRTOS configASSERT() fails, FreeRTOS will abort() and
+        halt execution. The panic handler can be configured to handle
+        the outcome of an abort() in different ways.
 
 config FREERTOS_ASSERT_FAIL_PRINT_CONTINUE
-       bool "Print and continue failed assertions"
-       help
-               If a FreeRTOS assertion fails, print it out and continue.
+    bool "Print and continue failed assertions"
+    help
+        If a FreeRTOS assertion fails, print it out and continue.
 
 config FREERTOS_ASSERT_DISABLE
-       bool "Disable FreeRTOS assertions"
-       help
-               FreeRTOS configASSERT() will not be compiled into the binary.
+    bool "Disable FreeRTOS assertions"
+    help
+        FreeRTOS configASSERT() will not be compiled into the binary.
 
 endchoice
 
 config FREERTOS_BREAK_ON_SCHEDULER_START_JTAG
-       bool "Stop program on scheduler start when JTAG/OCD is detected"
-       depends on FREERTOS_DEBUG_OCDAWARE
-       default y
-       help
-               If JTAG/OCD is connected, stop execution when the scheduler is started and the first
-               task is executed.
+    bool "Stop program on scheduler start when JTAG/OCD is detected"
+    depends on FREERTOS_DEBUG_OCDAWARE
+    default y
+    help
+        If JTAG/OCD is connected, stop execution when the scheduler is started and the first
+        task is executed.
 
 menuconfig ENABLE_MEMORY_DEBUG
-       bool "Enable heap memory debug"
-       default n
-       help
-               Enable this option to show malloc heap block and memory crash detect
+    bool "Enable heap memory debug"
+    default n
+    help
+        Enable this option to show malloc heap block and memory crash detect
 
 menuconfig FREERTOS_DEBUG_INTERNALS
-       bool "Debug FreeRTOS internals"
-       default n
-       help
-               Enable this option to show the menu with internal FreeRTOS debugging features.
-               This option does not change any code by itself, it just shows/hides some options.
+    bool "Debug FreeRTOS internals"
+    default n
+    help
+        Enable this option to show the menu with internal FreeRTOS debugging features.
+        This option does not change any code by itself, it just shows/hides some options.
 
 if FREERTOS_DEBUG_INTERNALS
 
 config FREERTOS_PORTMUX_DEBUG
-       bool "Debug portMUX portENTER_CRITICAL/portEXIT_CRITICAL"
-       depends on FREERTOS_DEBUG_INTERNALS
-       default n
-       help
-               If enabled, debug information (including integrity checks) will be printed
-               to UART for the port-specific MUX implementation.
+    bool "Debug portMUX portENTER_CRITICAL/portEXIT_CRITICAL"
+    depends on FREERTOS_DEBUG_INTERNALS
+    default n
+    help
+        If enabled, debug information (including integrity checks) will be printed
+        to UART for the port-specific MUX implementation.
 
 config FREERTOS_PORTMUX_DEBUG_RECURSIVE
-       bool "Debug portMUX Recursion"
-       depends on FREERTOS_PORTMUX_DEBUG
-       default n
-       help
-               If enabled, additional debug information will be printed for recursive
-               portMUX usage.
+    bool "Debug portMUX Recursion"
+    depends on FREERTOS_PORTMUX_DEBUG
+    default n
+    help
+        If enabled, additional debug information will be printed for recursive
+        portMUX usage.
 
 endif # FREERTOS_DEBUG_INTERNALS
 
index 1627ea1830d22ec5dece2f3de8941ad5b0b84d94..43e3a523ffc8932f2ac8ee1f7de3d26c7c043aaa 100644 (file)
@@ -28,13 +28,13 @@ config LOG_DEFAULT_LEVEL_VERBOSE
 endchoice
 
 config LOG_DEFAULT_LEVEL
-       int
-       default 0 if LOG_DEFAULT_LEVEL_NONE
-       default 1 if LOG_DEFAULT_LEVEL_ERROR
-       default 2 if LOG_DEFAULT_LEVEL_WARN
-       default 3 if LOG_DEFAULT_LEVEL_INFO
-       default 4 if LOG_DEFAULT_LEVEL_DEBUG
-       default 5 if LOG_DEFAULT_LEVEL_VERBOSE
+    int
+    default 0 if LOG_DEFAULT_LEVEL_NONE
+    default 1 if LOG_DEFAULT_LEVEL_ERROR
+    default 2 if LOG_DEFAULT_LEVEL_WARN
+    default 3 if LOG_DEFAULT_LEVEL_INFO
+    default 4 if LOG_DEFAULT_LEVEL_DEBUG
+    default 5 if LOG_DEFAULT_LEVEL_VERBOSE
 
 config LOG_COLORS
    bool "Use ANSI terminal colors in log output"
index ceb1453f9a3e8a7baf202326618a8a8b390d55bd..715d7dd467cd9b509fbc2a11feeedf2d967ce4a6 100644 (file)
@@ -1,27 +1,27 @@
 menu "LWIP"
 
 config LWIP_MAX_SOCKETS
-       int "Max number of open sockets"
-       range 1 16
-       default 4
-       help
-               Sockets take up a certain amount of memory, and allowing fewer
-               sockets to be open at the same time conserves memory. Specify
-               the maximum amount of sockets here.
+    int "Max number of open sockets"
+    range 1 16
+    default 4
+    help
+        Sockets take up a certain amount of memory, and allowing fewer
+        sockets to be open at the same time conserves memory. Specify
+        the maximum amount of sockets here.
 
 config LWIP_THREAD_LOCAL_STORAGE_INDEX
-       int "Index for thread-local-storage pointer for lwip"
-       default 0
-       help
-               Specify the thread-local-storage-pointer index for lwip
-               use.
+    int "Index for thread-local-storage pointer for lwip"
+    default 0
+    help
+        Specify the thread-local-storage-pointer index for lwip
+        use.
 
 config LWIP_SO_REUSE
-       bool "Enable SO_REUSEADDR option"
-       default 0
-       help
-               Enabling this option allows binding to a port which remains in 
-               TIME_WAIT.
+    bool "Enable SO_REUSEADDR option"
+    default 0
+    help
+        Enabling this option allows binding to a port which remains in
+        TIME_WAIT.
 
 endmenu
 
index b9c92bd7ccee848f5ea72b2b2a2da3faa50c90f5..60facc7d276e3a35d568b03285ea17ef4b5cbdc6 100644 (file)
@@ -2,7 +2,7 @@ menu "mbedTLS"
 
 config MBEDTLS_SSL_MAX_CONTENT_LEN
     int "TLS maximum message content length"
-       default 16384
+    default 16384
     range 512 16384
     help
         Maximum TLS message length (in bytes) supported by mbedTLS.
index c344a6b748f38b222ffdb3aade800281cae7f561..154dc7c30ff1b60f2e229e6cd46a6e255006993d 100644 (file)
@@ -1,15 +1,15 @@
 menu "SPI Flash driver"
 
 config SPI_FLASH_ENABLE_COUNTERS
-       bool "Enable operation counters"
-       default 0
-       help
-               This option enables the following APIs:
-                       spi_flash_reset_counters 
-                       spi_flash_dump_counters
-                       spi_flash_get_counters
-               These APIs may be used to collect performance data for spi_flash APIs 
-               and to help understand behaviour of libraries which use SPI flash.
+    bool "Enable operation counters"
+    default 0
+    help
+        This option enables the following APIs:
+            spi_flash_reset_counters
+            spi_flash_dump_counters
+            spi_flash_get_counters
+        These APIs may be used to collect performance data for spi_flash APIs
+        and to help understand behaviour of libraries which use SPI flash.
 
 endmenu