Kconfig: use 4 spaces to instead 1 tab

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.
This commit is contained in:
Wu Jian Gang 2016-09-28 13:24:58 +08:00
parent 70e1131b4b
commit ed0a85ab4d
8 changed files with 203 additions and 203 deletions

18
Kconfig
View File

@ -7,18 +7,18 @@ mainmenu "Espressif IoT Development Framework Configuration"
menu "SDK tool configuration" menu "SDK tool configuration"
config TOOLPREFIX config TOOLPREFIX
string "Compiler toolchain path/prefix" string "Compiler toolchain path/prefix"
default "xtensa-esp32-elf-" default "xtensa-esp32-elf-"
help help
The prefix/path that is used to call the toolchain. The default setting assumes The prefix/path that is used to call the toolchain. The default setting assumes
a crosstool-ng gcc setup that is in your PATH. a crosstool-ng gcc setup that is in your PATH.
config PYTHON config PYTHON
string "Python 2 interpreter" string "Python 2 interpreter"
default "python" default "python"
help help
The executable name/path that is used to run python. On some systems Python 2.x The executable name/path that is used to run python. On some systems Python 2.x
may need to be invoked as python2. may need to be invoked as python2.
endmenu endmenu
source "$COMPONENT_KCONFIGS_PROJBUILD" source "$COMPONENT_KCONFIGS_PROJBUILD"

View File

@ -3,27 +3,27 @@ visible if MEMMAP_BT
config BT_ENABLED config BT_ENABLED
bool bool
depends on ESP32_ENABLE_STACK_BT depends on ESP32_ENABLE_STACK_BT
help help
This compiles in the low-level BT stack. This compiles in the low-level BT stack.
#config BT_BTLE #config BT_BTLE
# bool "Enable BTLE" # bool "Enable BTLE"
# depends on BT_ENABLED # depends on BT_ENABLED
# help # help
# This compiles BTLE support # This compiles BTLE support
# #
#config BT_BT #config BT_BT
# bool "Enable classic BT" # bool "Enable classic BT"
# depends on BT_ENABLED # depends on BT_ENABLED
# help # help
# This enables classic BT support # This enables classic BT support
endmenu endmenu
# Memory reserved at start of DRAM for Bluetooth stack # Memory reserved at start of DRAM for Bluetooth stack
config BT_RESERVE_DRAM config BT_RESERVE_DRAM
hex hex
default 0x10000 if MEMMAP_BT default 0x10000 if MEMMAP_BT
default 0 default 0

View File

@ -84,7 +84,7 @@ config WIFI_ENABLED
help help
This compiles in the low-level WiFi stack. 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 config SYSTEM_EVENT_QUEUE_SIZE
int "System event queue size" int "System event queue size"
@ -107,37 +107,37 @@ config MAIN_TASK_STACK_SIZE
config NEWLIB_STDOUT_ADDCR config NEWLIB_STDOUT_ADDCR
bool "Standard-out output adds carriage return before newline" bool "Standard-out output adds carriage return before newline"
default y default y
help help
Most people are used to end their printf strings with a newline. If this 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 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 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 is usually done by an added CR character. Enabling this will make the
standard output code automatically add a CR character before a LF. standard output code automatically add a CR character before a LF.
config ULP_COPROC_ENABLED config ULP_COPROC_ENABLED
bool "Enable Ultra Low Power (ULP) Coprocessor" bool "Enable Ultra Low Power (ULP) Coprocessor"
default "n" default "n"
help 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 config ULP_COPROC_RESERVE_MEM
int "RTC slow memory reserved for coprocessor" int "RTC slow memory reserved for coprocessor"
default 512 default 512
range 32 8192 range 32 8192
depends on ULP_COPROC_ENABLED depends on ULP_COPROC_ENABLED
help help
Bytes of memory to reserve for ULP coprocessor firmware & data. 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 # Set CONFIG_ULP_COPROC_RESERVE_MEM to 0 if ULP is disabled
config ULP_COPROC_RESERVE_MEM config ULP_COPROC_RESERVE_MEM
int int
default 0 default 0
depends on !ULP_COPROC_ENABLED depends on !ULP_COPROC_ENABLED
endmenu endmenu

View File

@ -2,192 +2,192 @@ menu "FreeRTOS"
# This is actually also handled in the ESP32 startup code, not only in FreeRTOS. # This is actually also handled in the ESP32 startup code, not only in FreeRTOS.
config FREERTOS_UNICORE config FREERTOS_UNICORE
bool "Run FreeRTOS only on first core" bool "Run FreeRTOS only on first core"
default n default n
help help
This version of FreeRTOS normally takes control of all cores of 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. 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 This is needed when e.g. another process needs complete control
over the second core. over the second core.
choice FREERTOS_CORETIMER choice FREERTOS_CORETIMER
prompt "Xtensa timer to use as the FreeRTOS tick source" prompt "Xtensa timer to use as the FreeRTOS tick source"
default CONFIG_FREERTOS_CORETIMER_0 default CONFIG_FREERTOS_CORETIMER_0
help help
FreeRTOS needs a timer with an associated interrupt to use as FreeRTOS needs a timer with an associated interrupt to use as
the main tick source to increase counters, run timers and do the main tick source to increase counters, run timers and do
pre-emptive multitasking with. There are multiple timers available pre-emptive multitasking with. There are multiple timers available
to do this, with different interrupt priorities. Check to do this, with different interrupt priorities. Check
config FREERTOS_CORETIMER_0 config FREERTOS_CORETIMER_0
bool "Timer 0 (int 6, level 1)" bool "Timer 0 (int 6, level 1)"
help help
Select this to use timer 0 Select this to use timer 0
config FREERTOS_CORETIMER_1 config FREERTOS_CORETIMER_1
bool "Timer 1 (int 15, level 3)" bool "Timer 1 (int 15, level 3)"
help help
Select this to use timer 1 Select this to use timer 1
config FREERTOS_CORETIMER_2 config FREERTOS_CORETIMER_2
bool "Timer 2 (int 16, level 5)" bool "Timer 2 (int 16, level 5)"
help help
Select this to use timer 2 Select this to use timer 2
endchoice endchoice
config FREERTOS_HZ config FREERTOS_HZ
int "Tick rate (Hz)" int "Tick rate (Hz)"
range 1 10000 range 1 10000
default 100 default 100
help help
Select the tick rate at which FreeRTOS does pre-emptive context switching. Select the tick rate at which FreeRTOS does pre-emptive context switching.
choice FREERTOS_CHECK_STACKOVERFLOW choice FREERTOS_CHECK_STACKOVERFLOW
prompt "Check for stack overflow" prompt "Check for stack overflow"
default FREERTOS_CHECK_STACKOVERFLOW_QUICK default FREERTOS_CHECK_STACKOVERFLOW_QUICK
help help
FreeRTOS can check for stack overflows in threads and trigger an user function FreeRTOS can check for stack overflows in threads and trigger an user function
called vApplicationStackOverflowHook when this happens. called vApplicationStackOverflowHook when this happens.
config FREERTOS_CHECK_STACKOVERFLOW_NONE config FREERTOS_CHECK_STACKOVERFLOW_NONE
bool "No checking" bool "No checking"
help help
Do not check for stack overflows (configCHECK_FOR_STACK_OVERFLOW=0) Do not check for stack overflows (configCHECK_FOR_STACK_OVERFLOW=0)
config FREERTOS_CHECK_STACKOVERFLOW_PTRVAL config FREERTOS_CHECK_STACKOVERFLOW_PTRVAL
bool "Check by stack pointer value" bool "Check by stack pointer value"
help help
Check for stack overflows on each context switch by checking if Check for stack overflows on each context switch by checking if
the stack pointer is in a valid range. Quick but does not detect the stack pointer is in a valid range. Quick but does not detect
stack overflows that happened between context switches stack overflows that happened between context switches
(configCHECK_FOR_STACK_OVERFLOW=1) (configCHECK_FOR_STACK_OVERFLOW=1)
config FREERTOS_CHECK_STACKOVERFLOW_CANARY config FREERTOS_CHECK_STACKOVERFLOW_CANARY
bool "Check using canary bytes" bool "Check using canary bytes"
help help
Places some magic bytes at the end of the stack area and on each 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 context switch, check if these bytes are still intact. More thorough
than just checking the pointer, but also slightly slower. than just checking the pointer, but also slightly slower.
(configCHECK_FOR_STACK_OVERFLOW=2) (configCHECK_FOR_STACK_OVERFLOW=2)
endchoice endchoice
config FREERTOS_THREAD_LOCAL_STORAGE_POINTERS config FREERTOS_THREAD_LOCAL_STORAGE_POINTERS
int "Amount of thread local storage pointers" int "Amount of thread local storage pointers"
range 0 256 if !WIFI_ENABLED range 0 256 if !WIFI_ENABLED
range 1 256 if WIFI_ENABLED range 1 256 if WIFI_ENABLED
default 1 default 1
help help
FreeRTOS has the ability to store per-thread pointers in the task FreeRTOS has the ability to store per-thread pointers in the task
control block. This controls the amount of pointers available; control block. This controls the amount of pointers available;
0 turns off this functionality. 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. #This still needs to be implemented.
choice FREERTOS_PANIC choice FREERTOS_PANIC
prompt "Panic handler behaviour" prompt "Panic handler behaviour"
default FREERTOS_PANIC_PRINT_REBOOT default FREERTOS_PANIC_PRINT_REBOOT
help help
If FreeRTOS detects unexpected behaviour or an unhandled exception, the panic handler is If FreeRTOS detects unexpected behaviour or an unhandled exception, the panic handler is
invoked. Configure the panic handlers action here. invoked. Configure the panic handlers action here.
config FREERTOS_PANIC_PRINT_HALT config FREERTOS_PANIC_PRINT_HALT
bool "Print registers and halt" bool "Print registers and halt"
help help
Outputs the relevant registers over the serial port and halt the Outputs the relevant registers over the serial port and halt the
processor. Needs a manual reset to restart. processor. Needs a manual reset to restart.
config FREERTOS_PANIC_PRINT_REBOOT config FREERTOS_PANIC_PRINT_REBOOT
bool "Print registers and reboot" bool "Print registers and reboot"
help help
Outputs the relevant registers over the serial port and immediately Outputs the relevant registers over the serial port and immediately
reset the processor. reset the processor.
config FREERTOS_PANIC_SILENT_REBOOT config FREERTOS_PANIC_SILENT_REBOOT
bool "Silent reboot" bool "Silent reboot"
help help
Just resets the processor without outputting anything Just resets the processor without outputting anything
config FREERTOS_PANIC_GDBSTUB config FREERTOS_PANIC_GDBSTUB
bool "Invoke GDBStub" bool "Invoke GDBStub"
help help
Invoke gdbstub on the serial port, allowing for gdb to attach to it to do a postmortem Invoke gdbstub on the serial port, allowing for gdb to attach to it to do a postmortem
of the crash. of the crash.
endchoice endchoice
config FREERTOS_DEBUG_OCDAWARE config FREERTOS_DEBUG_OCDAWARE
bool "Make exception and panic handlers JTAG/OCD aware" bool "Make exception and panic handlers JTAG/OCD aware"
default y default y
help help
The FreeRTOS panic and unhandled exception handers can detect a JTAG OCD debugger and 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. instead of panicking, have the debugger stop on the offending instruction.
choice FREERTOS_ASSERT choice FREERTOS_ASSERT
prompt "FreeRTOS assertions" prompt "FreeRTOS assertions"
default FREERTOS_ASSERT_FAIL_ABORT default FREERTOS_ASSERT_FAIL_ABORT
help help
Failed FreeRTOS configASSERT() assertions can be configured to Failed FreeRTOS configASSERT() assertions can be configured to
behave in different ways. behave in different ways.
config FREERTOS_ASSERT_FAIL_ABORT config FREERTOS_ASSERT_FAIL_ABORT
bool "abort() on failed assertions" bool "abort() on failed assertions"
help help
If a FreeRTOS configASSERT() fails, FreeRTOS will abort() and If a FreeRTOS configASSERT() fails, FreeRTOS will abort() and
halt execution. The panic handler can be configured to handle halt execution. The panic handler can be configured to handle
the outcome of an abort() in different ways. the outcome of an abort() in different ways.
config FREERTOS_ASSERT_FAIL_PRINT_CONTINUE config FREERTOS_ASSERT_FAIL_PRINT_CONTINUE
bool "Print and continue failed assertions" bool "Print and continue failed assertions"
help help
If a FreeRTOS assertion fails, print it out and continue. If a FreeRTOS assertion fails, print it out and continue.
config FREERTOS_ASSERT_DISABLE config FREERTOS_ASSERT_DISABLE
bool "Disable FreeRTOS assertions" bool "Disable FreeRTOS assertions"
help help
FreeRTOS configASSERT() will not be compiled into the binary. FreeRTOS configASSERT() will not be compiled into the binary.
endchoice endchoice
config FREERTOS_BREAK_ON_SCHEDULER_START_JTAG config FREERTOS_BREAK_ON_SCHEDULER_START_JTAG
bool "Stop program on scheduler start when JTAG/OCD is detected" bool "Stop program on scheduler start when JTAG/OCD is detected"
depends on FREERTOS_DEBUG_OCDAWARE depends on FREERTOS_DEBUG_OCDAWARE
default y default y
help help
If JTAG/OCD is connected, stop execution when the scheduler is started and the first If JTAG/OCD is connected, stop execution when the scheduler is started and the first
task is executed. task is executed.
menuconfig ENABLE_MEMORY_DEBUG menuconfig ENABLE_MEMORY_DEBUG
bool "Enable heap memory debug" bool "Enable heap memory debug"
default n default n
help help
Enable this option to show malloc heap block and memory crash detect Enable this option to show malloc heap block and memory crash detect
menuconfig FREERTOS_DEBUG_INTERNALS menuconfig FREERTOS_DEBUG_INTERNALS
bool "Debug FreeRTOS internals" bool "Debug FreeRTOS internals"
default n default n
help help
Enable this option to show the menu with internal FreeRTOS debugging features. 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. This option does not change any code by itself, it just shows/hides some options.
if FREERTOS_DEBUG_INTERNALS if FREERTOS_DEBUG_INTERNALS
config FREERTOS_PORTMUX_DEBUG config FREERTOS_PORTMUX_DEBUG
bool "Debug portMUX portENTER_CRITICAL/portEXIT_CRITICAL" bool "Debug portMUX portENTER_CRITICAL/portEXIT_CRITICAL"
depends on FREERTOS_DEBUG_INTERNALS depends on FREERTOS_DEBUG_INTERNALS
default n default n
help help
If enabled, debug information (including integrity checks) will be printed If enabled, debug information (including integrity checks) will be printed
to UART for the port-specific MUX implementation. to UART for the port-specific MUX implementation.
config FREERTOS_PORTMUX_DEBUG_RECURSIVE config FREERTOS_PORTMUX_DEBUG_RECURSIVE
bool "Debug portMUX Recursion" bool "Debug portMUX Recursion"
depends on FREERTOS_PORTMUX_DEBUG depends on FREERTOS_PORTMUX_DEBUG
default n default n
help help
If enabled, additional debug information will be printed for recursive If enabled, additional debug information will be printed for recursive
portMUX usage. portMUX usage.
endif # FREERTOS_DEBUG_INTERNALS endif # FREERTOS_DEBUG_INTERNALS

View File

@ -28,13 +28,13 @@ config LOG_DEFAULT_LEVEL_VERBOSE
endchoice endchoice
config LOG_DEFAULT_LEVEL config LOG_DEFAULT_LEVEL
int int
default 0 if LOG_DEFAULT_LEVEL_NONE default 0 if LOG_DEFAULT_LEVEL_NONE
default 1 if LOG_DEFAULT_LEVEL_ERROR default 1 if LOG_DEFAULT_LEVEL_ERROR
default 2 if LOG_DEFAULT_LEVEL_WARN default 2 if LOG_DEFAULT_LEVEL_WARN
default 3 if LOG_DEFAULT_LEVEL_INFO default 3 if LOG_DEFAULT_LEVEL_INFO
default 4 if LOG_DEFAULT_LEVEL_DEBUG default 4 if LOG_DEFAULT_LEVEL_DEBUG
default 5 if LOG_DEFAULT_LEVEL_VERBOSE default 5 if LOG_DEFAULT_LEVEL_VERBOSE
config LOG_COLORS config LOG_COLORS
bool "Use ANSI terminal colors in log output" bool "Use ANSI terminal colors in log output"

View File

@ -1,27 +1,27 @@
menu "LWIP" menu "LWIP"
config LWIP_MAX_SOCKETS config LWIP_MAX_SOCKETS
int "Max number of open sockets" int "Max number of open sockets"
range 1 16 range 1 16
default 4 default 4
help help
Sockets take up a certain amount of memory, and allowing fewer Sockets take up a certain amount of memory, and allowing fewer
sockets to be open at the same time conserves memory. Specify sockets to be open at the same time conserves memory. Specify
the maximum amount of sockets here. the maximum amount of sockets here.
config LWIP_THREAD_LOCAL_STORAGE_INDEX config LWIP_THREAD_LOCAL_STORAGE_INDEX
int "Index for thread-local-storage pointer for lwip" int "Index for thread-local-storage pointer for lwip"
default 0 default 0
help help
Specify the thread-local-storage-pointer index for lwip Specify the thread-local-storage-pointer index for lwip
use. use.
config LWIP_SO_REUSE config LWIP_SO_REUSE
bool "Enable SO_REUSEADDR option" bool "Enable SO_REUSEADDR option"
default 0 default 0
help help
Enabling this option allows binding to a port which remains in Enabling this option allows binding to a port which remains in
TIME_WAIT. TIME_WAIT.
endmenu endmenu

View File

@ -2,7 +2,7 @@ menu "mbedTLS"
config MBEDTLS_SSL_MAX_CONTENT_LEN config MBEDTLS_SSL_MAX_CONTENT_LEN
int "TLS maximum message content length" int "TLS maximum message content length"
default 16384 default 16384
range 512 16384 range 512 16384
help help
Maximum TLS message length (in bytes) supported by mbedTLS. Maximum TLS message length (in bytes) supported by mbedTLS.

View File

@ -1,15 +1,15 @@
menu "SPI Flash driver" menu "SPI Flash driver"
config SPI_FLASH_ENABLE_COUNTERS config SPI_FLASH_ENABLE_COUNTERS
bool "Enable operation counters" bool "Enable operation counters"
default 0 default 0
help help
This option enables the following APIs: This option enables the following APIs:
spi_flash_reset_counters spi_flash_reset_counters
spi_flash_dump_counters spi_flash_dump_counters
spi_flash_get_counters spi_flash_get_counters
These APIs may be used to collect performance data for spi_flash APIs These APIs may be used to collect performance data for spi_flash APIs
and to help understand behaviour of libraries which use SPI flash. and to help understand behaviour of libraries which use SPI flash.
endmenu endmenu