Browse Source

update(menuconfig):添加ulog日志打印

dev-rebuild
jujihjuji 3 months ago
parent
commit
fe75c7fb22
  1. 32
      .config
  2. 15
      rtconfig.h

32
.config

@ -219,7 +219,37 @@ CONFIG_RT_LIBC_TZ_DEFAULT_SEC=0
# Utilities # Utilities
# #
# CONFIG_RT_USING_RYM is not set # CONFIG_RT_USING_RYM is not set
# CONFIG_RT_USING_ULOG is not set
CONFIG_RT_USING_ULOG=y
# CONFIG_ULOG_OUTPUT_LVL_A is not set
# CONFIG_ULOG_OUTPUT_LVL_E is not set
# CONFIG_ULOG_OUTPUT_LVL_W is not set
# CONFIG_ULOG_OUTPUT_LVL_I is not set
CONFIG_ULOG_OUTPUT_LVL_D=y
CONFIG_ULOG_OUTPUT_LVL=7
CONFIG_ULOG_USING_ISR_LOG=y
CONFIG_ULOG_ASSERT_ENABLE=y
CONFIG_ULOG_LINE_BUF_SIZE=128
CONFIG_ULOG_USING_ASYNC_OUTPUT=y
CONFIG_ULOG_ASYNC_OUTPUT_BUF_SIZE=512
CONFIG_ULOG_ASYNC_OUTPUT_BY_THREAD=y
CONFIG_ULOG_ASYNC_OUTPUT_THREAD_STACK=1024
CONFIG_ULOG_ASYNC_OUTPUT_THREAD_PRIORITY=20
#
# log format
#
# CONFIG_ULOG_OUTPUT_FLOAT is not set
# CONFIG_ULOG_USING_COLOR is not set
# CONFIG_ULOG_OUTPUT_TIME is not set
# CONFIG_ULOG_OUTPUT_LEVEL is not set
# CONFIG_ULOG_OUTPUT_TAG is not set
# CONFIG_ULOG_OUTPUT_THREAD_NAME is not set
# end of log format
# CONFIG_ULOG_BACKEND_USING_CONSOLE is not set
# CONFIG_ULOG_BACKEND_USING_FILE is not set
# CONFIG_ULOG_USING_FILTER is not set
# CONFIG_ULOG_USING_SYSLOG is not set
# CONFIG_RT_USING_UTEST is not set # CONFIG_RT_USING_UTEST is not set
# CONFIG_RT_USING_VAR_EXPORT is not set # CONFIG_RT_USING_VAR_EXPORT is not set
# CONFIG_RT_USING_RESOURCE_ID is not set # CONFIG_RT_USING_RESOURCE_ID is not set

15
rtconfig.h

@ -113,6 +113,21 @@
/* Utilities */ /* Utilities */
#define RT_USING_ULOG
#define ULOG_OUTPUT_LVL_D
#define ULOG_OUTPUT_LVL 7
#define ULOG_USING_ISR_LOG
#define ULOG_ASSERT_ENABLE
#define ULOG_LINE_BUF_SIZE 128
#define ULOG_USING_ASYNC_OUTPUT
#define ULOG_ASYNC_OUTPUT_BUF_SIZE 512
#define ULOG_ASYNC_OUTPUT_BY_THREAD
#define ULOG_ASYNC_OUTPUT_THREAD_STACK 1024
#define ULOG_ASYNC_OUTPUT_THREAD_PRIORITY 20
/* log format */
/* end of log format */
/* end of Utilities */ /* end of Utilities */
/* end of RT-Thread Components */ /* end of RT-Thread Components */

Loading…
Cancel
Save