2017-12-02 23:16:45 +08:00
|
|
|
menu "Utilities"
|
|
|
|
|
|
|
|
config RT_USING_RYM
|
|
|
|
bool "Enable Ymodem"
|
|
|
|
default n
|
|
|
|
|
2019-12-13 11:49:53 +08:00
|
|
|
if RT_USING_RYM
|
2019-12-17 13:38:49 +08:00
|
|
|
config YMODEM_USING_CRC_TABLE
|
|
|
|
bool "Enable CRC Table in Ymodem"
|
|
|
|
default n
|
|
|
|
|
|
|
|
config YMODEM_USING_FILE_TRANSFER
|
|
|
|
bool "Enable file transfer feature"
|
2021-05-19 12:56:27 +08:00
|
|
|
depends on RT_USING_DFS
|
|
|
|
default y
|
2019-12-13 11:49:53 +08:00
|
|
|
endif
|
|
|
|
|
2018-10-30 09:00:30 +08:00
|
|
|
config RT_USING_ULOG
|
|
|
|
bool "Enable ulog"
|
|
|
|
default n
|
|
|
|
|
|
|
|
if RT_USING_ULOG
|
|
|
|
if !ULOG_USING_SYSLOG
|
|
|
|
choice
|
|
|
|
prompt "The static output log level."
|
2018-11-06 11:41:44 +08:00
|
|
|
default ULOG_OUTPUT_LVL_D
|
2018-10-30 09:00:30 +08:00
|
|
|
help
|
|
|
|
When the log level is less than this option and it will stop output.
|
|
|
|
These log will not compile into ROM when using LOG_X api.
|
|
|
|
NOTE: It's not available on syslog mode.
|
2018-11-06 11:41:44 +08:00
|
|
|
config ULOG_OUTPUT_LVL_A
|
2018-10-30 09:00:30 +08:00
|
|
|
bool "Assert"
|
2018-11-06 11:41:44 +08:00
|
|
|
config ULOG_OUTPUT_LVL_E
|
2018-10-30 09:00:30 +08:00
|
|
|
bool "Error"
|
2018-11-06 11:41:44 +08:00
|
|
|
config ULOG_OUTPUT_LVL_W
|
2018-10-30 09:00:30 +08:00
|
|
|
bool "Warning"
|
2018-11-06 11:41:44 +08:00
|
|
|
config ULOG_OUTPUT_LVL_I
|
2018-10-30 09:00:30 +08:00
|
|
|
bool "Information"
|
2018-11-06 11:41:44 +08:00
|
|
|
config ULOG_OUTPUT_LVL_D
|
2018-10-30 09:00:30 +08:00
|
|
|
bool "Debug"
|
|
|
|
endchoice
|
|
|
|
endif
|
|
|
|
|
|
|
|
if ULOG_USING_SYSLOG
|
|
|
|
choice
|
|
|
|
prompt "The static output log level."
|
|
|
|
default ULOG_OUTPUT_LVL_DEBUG
|
|
|
|
help
|
|
|
|
When the log level is less than this option and it will stop output.
|
|
|
|
These log will not compile into ROM when using LOG_X api.
|
|
|
|
NOTE: It's not available on syslog mode.
|
|
|
|
config ULOG_OUTPUT_LVL_EMERG
|
|
|
|
bool "EMERG"
|
|
|
|
config ULOG_OUTPUT_LVL_ALERT
|
|
|
|
bool "ALERT"
|
|
|
|
config ULOG_OUTPUT_LVL_CRIT
|
|
|
|
bool "CRIT"
|
|
|
|
config ULOG_OUTPUT_LVL_ERROR
|
|
|
|
bool "ERR"
|
|
|
|
config ULOG_OUTPUT_LVL_WARNING
|
|
|
|
bool "WARNING"
|
|
|
|
config ULOG_OUTPUT_LVL_NOTICE
|
|
|
|
bool "NOTICE"
|
|
|
|
config ULOG_OUTPUT_LVL_INFO
|
|
|
|
bool "INFO"
|
|
|
|
config ULOG_OUTPUT_LVL_DEBUG
|
|
|
|
bool "DEBUG"
|
|
|
|
endchoice
|
|
|
|
endif
|
|
|
|
|
|
|
|
config ULOG_OUTPUT_LVL
|
|
|
|
int
|
2018-11-06 11:41:44 +08:00
|
|
|
default 0 if ULOG_OUTPUT_LVL_A
|
2018-10-30 09:00:30 +08:00
|
|
|
default 0 if ULOG_OUTPUT_LVL_EMERG
|
|
|
|
default 1 if ULOG_OUTPUT_LVL_ALERT
|
|
|
|
default 2 if ULOG_OUTPUT_LVL_CRIT
|
2018-11-06 11:41:44 +08:00
|
|
|
default 3 if ULOG_OUTPUT_LVL_E
|
2018-10-30 09:00:30 +08:00
|
|
|
default 3 if ULOG_OUTPUT_LVL_ERROR
|
2018-11-06 11:41:44 +08:00
|
|
|
default 4 if ULOG_OUTPUT_LVL_W
|
2018-10-30 09:00:30 +08:00
|
|
|
default 4 if ULOG_OUTPUT_LVL_WARNING
|
|
|
|
default 5 if ULOG_OUTPUT_LVL_NOTICE
|
2018-11-06 11:41:44 +08:00
|
|
|
default 6 if ULOG_OUTPUT_LVL_I
|
2018-10-30 09:00:30 +08:00
|
|
|
default 6 if ULOG_OUTPUT_LVL_INFO
|
2018-11-06 11:41:44 +08:00
|
|
|
default 7 if ULOG_OUTPUT_LVL_D
|
2018-10-30 09:00:30 +08:00
|
|
|
default 7 if ULOG_OUTPUT_LVL_DEBUG
|
|
|
|
default 7
|
|
|
|
|
|
|
|
config ULOG_USING_ISR_LOG
|
|
|
|
bool "Enable ISR log."
|
|
|
|
default n
|
|
|
|
help
|
|
|
|
The log output API can using in ISR (Interrupt Service Routines) also.
|
|
|
|
|
|
|
|
config ULOG_ASSERT_ENABLE
|
|
|
|
bool "Enable assert check."
|
|
|
|
default y
|
|
|
|
|
|
|
|
config ULOG_LINE_BUF_SIZE
|
|
|
|
int "The log's max width."
|
|
|
|
default 128
|
|
|
|
help
|
|
|
|
The buffer size for every line log.
|
|
|
|
|
|
|
|
config ULOG_USING_ASYNC_OUTPUT
|
|
|
|
bool "Enable async output mode."
|
|
|
|
default n
|
|
|
|
help
|
|
|
|
When enable asynchronous output mode. The log output is not immediately and the log will stored to buffer.
|
|
|
|
The another thread (Such as idle) will read the buffer and output the log. So it will using more RAM.
|
|
|
|
|
|
|
|
if ULOG_USING_ASYNC_OUTPUT
|
|
|
|
config ULOG_ASYNC_OUTPUT_BUF_SIZE
|
|
|
|
int "The async output buffer size."
|
|
|
|
default 2048
|
|
|
|
|
|
|
|
config ULOG_ASYNC_OUTPUT_BY_THREAD
|
|
|
|
bool "Enable async output by thread."
|
|
|
|
default y
|
|
|
|
help
|
|
|
|
This thread will output the asynchronous logs. The logs can output by other user thread when this option is disable.
|
|
|
|
|
|
|
|
if ULOG_ASYNC_OUTPUT_BY_THREAD
|
|
|
|
|
|
|
|
config ULOG_ASYNC_OUTPUT_THREAD_STACK
|
|
|
|
int "The async output thread stack size."
|
|
|
|
default 1024
|
|
|
|
|
|
|
|
config ULOG_ASYNC_OUTPUT_THREAD_PRIORITY
|
|
|
|
int "The async output thread stack priority."
|
|
|
|
range 0 RT_THREAD_PRIORITY_MAX
|
|
|
|
default 30
|
|
|
|
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
menu "log format"
|
|
|
|
config ULOG_OUTPUT_FLOAT
|
2018-11-01 14:51:50 +08:00
|
|
|
bool "Enable float number support. It will using more thread stack."
|
2018-10-30 09:00:30 +08:00
|
|
|
select RT_USING_LIBC
|
|
|
|
default n
|
|
|
|
help
|
|
|
|
The default formater is using rt_vsnprint and it not supported float number.
|
|
|
|
When enable this option then it will enable libc. The formater will change to vsnprint on libc.
|
|
|
|
|
|
|
|
if !ULOG_USING_SYSLOG
|
|
|
|
config ULOG_USING_COLOR
|
|
|
|
bool "Enable color log."
|
|
|
|
default y
|
|
|
|
help
|
|
|
|
The log will has different color by level.
|
|
|
|
endif
|
|
|
|
|
|
|
|
config ULOG_OUTPUT_TIME
|
|
|
|
bool "Enable time information."
|
|
|
|
default y
|
|
|
|
|
|
|
|
config ULOG_TIME_USING_TIMESTAMP
|
|
|
|
bool "Enable timestamp format for time."
|
|
|
|
default n
|
|
|
|
depends on ULOG_OUTPUT_TIME
|
|
|
|
|
|
|
|
config ULOG_OUTPUT_LEVEL
|
|
|
|
bool "Enable level information."
|
|
|
|
default y
|
|
|
|
|
|
|
|
config ULOG_OUTPUT_TAG
|
|
|
|
bool "Enable tag information."
|
|
|
|
default y
|
|
|
|
|
|
|
|
config ULOG_OUTPUT_THREAD_NAME
|
|
|
|
bool "Enable thread information."
|
|
|
|
default n
|
|
|
|
endmenu
|
|
|
|
|
|
|
|
config ULOG_BACKEND_USING_CONSOLE
|
|
|
|
bool "Enable console backend."
|
|
|
|
default y
|
|
|
|
help
|
|
|
|
The low level output using rt_kprintf().
|
|
|
|
|
|
|
|
config ULOG_USING_FILTER
|
|
|
|
bool "Enable runtime log filter."
|
|
|
|
default n
|
|
|
|
help
|
|
|
|
It will enable the log filter.
|
|
|
|
Such as level filter, log tag filter, log kw filter and tag's level filter.
|
|
|
|
|
|
|
|
config ULOG_USING_SYSLOG
|
|
|
|
bool "Enable syslog format log and API."
|
|
|
|
select ULOG_OUTPUT_TIME
|
|
|
|
select ULOG_USING_FILTER
|
|
|
|
default n
|
|
|
|
endif
|
|
|
|
|
2018-12-06 17:11:27 +08:00
|
|
|
config RT_USING_UTEST
|
|
|
|
bool "Enable utest (RT-Thread test framework)"
|
|
|
|
default n
|
|
|
|
|
2019-02-13 09:37:26 +08:00
|
|
|
if RT_USING_UTEST
|
|
|
|
config UTEST_THR_STACK_SIZE
|
|
|
|
int "The utest thread stack size"
|
|
|
|
default 4096
|
|
|
|
config UTEST_THR_PRIORITY
|
|
|
|
int "The utest thread priority"
|
|
|
|
default 20
|
|
|
|
endif
|
|
|
|
|
2021-07-23 19:48:30 +08:00
|
|
|
config RT_USING_VAR_EXPORT
|
|
|
|
bool "Enable Var Export"
|
|
|
|
default n
|
|
|
|
|
2021-05-15 16:52:49 +08:00
|
|
|
source "$RTT_DIR/components/utilities/rt-link/Kconfig"
|
|
|
|
|
2017-12-02 23:16:45 +08:00
|
|
|
endmenu
|