diff --git a/.config b/.config index e70ee33..903b7db 100644 --- a/.config +++ b/.config @@ -219,7 +219,37 @@ CONFIG_RT_LIBC_TZ_DEFAULT_SEC=0 # Utilities # # 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_VAR_EXPORT is not set # CONFIG_RT_USING_RESOURCE_ID is not set diff --git a/rtconfig.h b/rtconfig.h index 5d1453a..61dd2eb 100644 --- a/rtconfig.h +++ b/rtconfig.h @@ -113,6 +113,21 @@ /* 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 RT-Thread Components */