You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
EasyLogger/demo/os/rt-thread/README.md

24 lines
768 B
Markdown

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

# stm32f10x RT-Thread Demo
---
## 1、简介
通过 `app\src\app_task.c``test_elog()` 方法来测试日志的输出,用户可以接入终端来控制日志的输出与过滤器的设置。
### 1.1、使用方法
打开电脑的终端与Demo的串口1进行连接串口配置 115200 8 1 N此时在终端中就可以输入 "2.6 Demo" Gif动画中提到的常用命令如下
- 1、elog使能与失能输出日志。elog on使能elog off失能
- 2、elog_lvl设置过滤级别(0-5)。
- 3、elog_tag设置过滤标签设置后则只有当日志的标签包含过滤标签时才会被输出。不带任何参数则清空过滤标签。
- 4、elog_kw设置过滤关键词设置后则只有当日志的 **所有内容** 包含过滤关键词时,才会被输出。不带任何参数则清空过滤关键词。
## 2、文件说明
`components\easylogger\port\elog_port.c` 移植参考文件
`RVMDK` 下为Keil工程文件
`EWARM` 下为IAR工程文件