2015-07-31 13:29:14 +08:00
|
|
|
|
# stm32f10x <20><><EFBFBD><EFBFBD> demo
|
|
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
|
|
## 1<><31><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
|
2015-07-31 13:32:39 +08:00
|
|
|
|
ͨ<EFBFBD><EFBFBD> `app\src\app.c` <20><> `test_elog()` <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>־<EFBFBD><D6BE><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
2015-07-31 13:29:14 +08:00
|
|
|
|
|
|
|
|
|
### 1.1<EFBFBD><EFBFBD>ʹ<EFBFBD>÷<EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
|
2015-07-31 13:32:39 +08:00
|
|
|
|
<EFBFBD><EFBFBD><EFBFBD>Ե<EFBFBD><EFBFBD>ն<EFBFBD><EFBFBD><EFBFBD>demo<EFBFBD>Ĵ<EFBFBD><EFBFBD><EFBFBD>1<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ӣ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 115200 8 1 N<><4E><EFBFBD><EFBFBD>ʱ<EFBFBD><CAB1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ն<EFBFBD><D5B6>Ͽ<EFBFBD><CFBF><EFBFBD>demo<6D>Ĵ<EFBFBD>ӡ<EFBFBD><D3A1>־
|
2015-07-31 13:29:14 +08:00
|
|
|
|
|
2015-07-31 13:32:39 +08:00
|
|
|
|
> ע<EFBFBD>⣺<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ն˵<EFBFBD><EFBFBD>û<EFBFBD><EFBFBD><EFBFBD>Ҳ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʹ<EFBFBD>÷<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>demoƽ̨<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ӣ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>Թ۲<EFBFBD><EFBFBD><EFBFBD>־<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
2015-07-31 13:29:14 +08:00
|
|
|
|
|
|
|
|
|
## 2<><32><EFBFBD>ļ<EFBFBD><C4BC><EFBFBD><EFBFBD>У<EFBFBD>˵<EFBFBD><CBB5>
|
|
|
|
|
|
|
|
|
|
`components\easylogger\port\elog_port.c` <20><>ֲ<EFBFBD>ο<EFBFBD><CEBF>ļ<EFBFBD>
|
|
|
|
|
|
|
|
|
|
`RVMDK` <20><>ΪKeil<69><6C><EFBFBD><EFBFBD><EFBFBD>ļ<EFBFBD>
|
|
|
|
|
|
|
|
|
|
`EWARM` <20><>ΪIAR<41><52><EFBFBD><EFBFBD><EFBFBD>ļ<EFBFBD>
|
|
|
|
|
|
|
|
|
|
## 3<><33><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
|
2016-11-23 13:06:45 +08:00
|
|
|
|
<EFBFBD><EFBFBD><EFBFBD>Դ<EFBFBD><EFBFBD><EFBFBD> `app\src\app.c` <20>еIJ<D0B5><C4B2><EFBFBD>ע<EFBFBD>ͣ<EFBFBD><CDA3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>¹<EFBFBD><C2B9>ܡ<EFBFBD>
|
2015-07-31 13:29:14 +08:00
|
|
|
|
|
2016-11-23 13:06:45 +08:00
|
|
|
|
- `elog_set_output_enabled(false);` <20><><EFBFBD><EFBFBD>̬ʹ<CCAC>ܻ<EFBFBD>ʧ<EFBFBD><CAA7><EFBFBD><EFBFBD>־<EFBFBD><D6BE><EFBFBD><EFBFBD>
|
|
|
|
|
- `elog_set_filter_lvl(ELOG_LVL_WARN);` <20><><EFBFBD><EFBFBD>̬<EFBFBD><CCAC><EFBFBD>ù<EFBFBD><C3B9><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȼ<EFBFBD>
|
|
|
|
|
- `elog_set_filter_tag("main");` <20><><EFBFBD><EFBFBD>̬<EFBFBD><CCAC><EFBFBD>ù<EFBFBD><C3B9>˱<EFBFBD>ǩ
|
|
|
|
|
- `elog_set_filter_kw("Hello");` <20><><EFBFBD><EFBFBD>̬<EFBFBD><CCAC><EFBFBD>ù<EFBFBD><C3B9>˹ؼ<CBB9><D8BC><EFBFBD>
|
2019-11-30 20:18:00 +08:00
|
|
|
|
- `elog_set_filter_tag_lvl("main", ELOG_LVL_WARN);` <20><><EFBFBD><EFBFBD>̬<EFBFBD><CCAC><EFBFBD>ù<EFBFBD><C3B9>˹ؼ<CBB9><D8BC>ʼ<EFBFBD><CABC><EFBFBD>
|