esp-idf/components/hal/Kconfig

69 lines
2.6 KiB
Plaintext
Raw Normal View History

2021-05-18 22:53:21 -04:00
menu "Hardware Abstraction Layer (HAL) and Low Level (LL)"
choice HAL_DEFAULT_ASSERTION_LEVEL
bool "Default HAL assertion level"
default HAL_ASSERTION_EQUALS_SYSTEM
help
Set the assert behavior / level for HAL component.
HAL component assert level can be set separately,
but the level can't exceed the system assertion level.
e.g. If the system assertion is disabled, then the HAL
assertion can't be enabled either. If the system assertion
is enable, then the HAL assertion can still be disabled
by this Kconfig option.
config HAL_ASSERTION_EQUALS_SYSTEM
bool "Same as system assertion level"
config HAL_ASSERTION_DISABLE
bool "Disabled"
depends on COMPILER_OPTIMIZATION_ASSERTION_LEVEL >= 0
config HAL_ASSERTION_SILIENT
bool "Silent"
depends on COMPILER_OPTIMIZATION_ASSERTION_LEVEL >= 1
config HAL_ASSERTION_ENABLE
bool "Enabled"
depends on COMPILER_OPTIMIZATION_ASSERTION_LEVEL >= 2
endchoice
config HAL_DEFAULT_ASSERTION_LEVEL
int
default COMPILER_OPTIMIZATION_ASSERTION_LEVEL if HAL_ASSERTION_EQUALS_SYSTEM
default 0 if HAL_ASSERTION_DISABLE
default 1 if HAL_ASSERTION_SILIENT
default 2 if HAL_ASSERTION_ENABLE
choice HAL_LOG_LEVEL
bool "HAL layer log verbosity"
default HAL_LOG_LEVEL_INFO
# If LOG component is linked, one of the following configuration symbol will be defined.
# Else, none will be defined, in that case, we need this HAL_LOG_LEVEL symbol.
depends on !LOG_DEFAULT_LEVEL_NONE && !LOG_DEFAULT_LEVEL_ERROR && !LOG_DEFAULT_LEVEL_WARN && \
!LOG_DEFAULT_LEVEL_INFO && !LOG_DEFAULT_LEVEL_DEBUG && !LOG_DEFAULT_LEVEL_VERBOSE
help
Specify how much output to see in HAL logs.
config HAL_LOG_LEVEL_NONE
bool "No output"
config HAL_LOG_LEVEL_ERROR
bool "Error"
config HAL_LOG_LEVEL_WARN
bool "Warning"
config HAL_LOG_LEVEL_INFO
bool "Info"
config HAL_LOG_LEVEL_DEBUG
bool "Debug"
config HAL_LOG_LEVEL_VERBOSE
bool "Verbose"
endchoice
config HAL_LOG_LEVEL
int
default 0 if HAL_LOG_LEVEL_NONE
default 1 if HAL_LOG_LEVEL_ERROR
default 2 if HAL_LOG_LEVEL_WARN
default 3 if HAL_LOG_LEVEL_INFO
default 4 if HAL_LOG_LEVEL_DEBUG
default 5 if HAL_LOG_LEVEL_VERBOSE
2021-05-18 22:53:21 -04:00
endmenu