MurphyZhao
f9e5d87c98
[components][utest] 将 utest_assert.h 加入 utest.h,以后测试用例仅需要包含 utest.h
...
[components][utest] 增加 buf 类型的字节比较 assert 宏
[components][utest] 修复错误日志打印的输出类型为 ERR 级别
Signed-off-by: MurphyZhao <d2014zjt@163.com>
2019-01-22 15:46:12 +08:00
Lyn
626d0e9e06
ymodem support multiple files transmission
2019-01-22 13:58:59 +08:00
MurphyZhao
5ea985d0fb
[components][utilities/ulog] 修改 ulog_console_backend_init 从 `INIT_COMPONENT_EXPORT` 修改为 `INIT_PREV_EXPORT` 级别的自动初始化,与 ulog_init 同级
...
目的是为了组件初始化中的其他模块可以使用 ulog 输出日志。
Signed-off-by: MurphyZhao <d2014zjt@163.com>
2019-01-04 18:59:51 +08:00
朱天龙 (Armink)
c7daacc96f
[component][ulog] Fix the ulog_strcpy function.
2019-01-03 15:31:04 +08:00
Bernard Xiong
dcf7bce2cc
Merge pull request #2041 from zhaojuntao/utest-dev
...
[components][utilities] 增加 utest(单元测试框架)
2018-12-12 12:55:36 +08:00
MurphyZhao
bce7f85907
[components/utilities/utest] 移除不那么必要的日志接口 redefine
...
Signed-off-by: MurphyZhao <d2014zjt@163.com>
2018-12-08 15:01:08 +08:00
MurphyZhao
98b10877e7
[components/utilities/utest] 修复 gcc 编译警告
...
[components/utilities/utest] 移除组件的版本号
[components/utilities/utest] 优化 basename 函数的处理
Signed-off-by: MurphyZhao <d2014zjt@163.com>
2018-12-08 14:48:54 +08:00
MurphyZhao
51b17a15e4
[components/utilities/utest] 完善代码,增加注释
...
Signed-off-by: MurphyZhao <d2014zjt@163.com>
2018-12-06 18:59:13 +08:00
MurphyZhao
8824b2ca77
[components/utilities] [Kconfig] 增加 kconfig RT_USING_UTEST 配置
...
[components/utilities] [utest] 增加 testcase 运行超时时间参数
Signed-off-by: MurphyZhao <d2014zjt@163.com>
2018-12-06 17:13:14 +08:00
MurphyZhao
0759b66eb9
【更新】components/utilities/utest 增加 SConscript depend
...
Signed-off-by: MurphyZhao <d2014zjt@163.com>
2018-12-05 18:07:03 +08:00
MurphyZhao
1ecf6cbc7c
【更新】utest gcc 链接符
...
Signed-off-by: MurphyZhao <d2014zjt@163.com>
2018-12-05 14:53:37 +08:00
HubretXie
81cd4d4f4b
Update ulog.h
...
增加LOG_HEX
2018-12-04 09:10:52 +08:00
HubretXie
fa06299637
Update ulog_def.h
...
增加log_hex
2018-12-04 09:09:58 +08:00
MurphyZhao
85d275b399
[components/utilities][add] 增加测试框架 utest 代码
...
Signed-off-by: MurphyZhao <d2014zjt@163.com>
2018-11-30 16:13:17 +08:00
Dahua1992
0df270bfc5
add #include <sys/time.h>
...
原因tm = gmtime_r(&now, &tm_tmp);报错
2018-11-13 10:55:05 +08:00
Dahua1992
c71828fb33
add #include <sys/time.h>
...
原因 tm = gmtime_r(&now, &tm_tmp);报错
2018-11-13 10:22:53 +08:00
armink
106e6b77b2
[component][ulog] Fix a input parameter check error.
2018-11-10 09:49:21 +08:00
armink
f28b9d83f7
[component][ulog] Fix a compile error when timestamp is enable.
2018-11-09 17:31:40 +08:00
armink
acfe61b501
[component][ulog] Fix some comments.
2018-11-09 09:19:44 +08:00
armink
6a165e5cb1
[component][ulog] Update version to 0.1.1 .
2018-11-08 11:27:18 +08:00
armink
c990f0a026
[component][ulog] Add tag filter to hexdump function.
2018-11-08 11:23:03 +08:00
armink
2ff67c932f
[component][ulog] Add show filter settings shell command 'ulog_filter'.
2018-11-08 11:22:02 +08:00
armink
ad602f5b90
[component][ulog] Add filter get API.
2018-11-08 11:20:42 +08:00
armink
2fe79faf3d
[component][ulog] Fix a memory leak problem.
2018-11-08 10:59:25 +08:00
armink
4e6f13e0da
[component] fix Kconfig warning in at and ulog.
2018-11-06 11:41:44 +08:00
armink
9ceecb4d95
[component][ulog] Update ulog hexdump format.
2018-11-01 19:39:08 +08:00
armink
c336099a93
[component][ulog] Reduce thread stack usage when using ulog.
2018-11-01 14:51:50 +08:00
armink
e588dfa633
[component][ulog] Add newline param for ulog_output API.
2018-10-31 10:54:12 +08:00
armink
12a803bcc9
[component] Add ulog logger basic component.
2018-10-30 09:11:42 +08:00
Bernard Xiong
8c1c6516b3
[Components] Change license to Apache License v2.0
2018-10-29 11:06:58 +08:00
Bernard Xiong
9064b28c2a
[license] Change license to Apache.
2018-10-14 19:28:18 +08:00
MurphyZhao
dcbbb05f50
[components][ymodem] 修复 ymodem 不支持 secureCRT 下 1024字节传输的问题
...
Signed-off-by: MurphyZhao <d2014zjt@163.com>
2018-09-06 11:02:49 +08:00
MurphyZhao
3b161b58f2
[component][ymodem] Fix compilation warning in MDK
...
Signed-off-by: MurphyZhao <d2014zjt@163.com>
2018-08-23 17:23:03 +08:00
Bernard Xiong
884fb70fe9
[Kernel] Add device ops feature.
2018-06-10 17:59:17 +08:00
bernard
b07bd6c515
[Utilities] Add more options for logtrace.
2017-12-29 22:52:38 +08:00
armink
fde3d6bc10
[Kconfig] Add utilities Kconfig.
2017-12-02 23:16:45 +08:00
Bernard Xiong
85b17e9158
[logtrace] change the type of cmd to 'int'
2017-11-01 13:38:10 +08:00
bernard
5e3b3b19a6
[BSP] change the type of cmd.
...
1. Change the type of cmd to 'int';
2. Remove RT_LWIP_USING_RT_MEM macro;
2017-10-16 13:23:03 +08:00
emlslxl
3007b34ad3
add log_file flush function
2017-08-04 12:46:23 +08:00
Bernard Xiong
d6cb1e3465
[Util] Add logtrace into components auto-initialization
2015-06-25 17:11:40 +08:00
Bernard Xiong
4373ef2e26
[Utilities] Change the log_trace_init to auto init.
2015-05-05 10:43:15 +08:00
Grissiom
d479960aac
ymodem: fix a race-condition in handshaking
...
As we are sending C continuously, there is a chance that the
sender(remote) receive an C after sending the first handshake package.
So the sender will interpret it as NAK and re-send the package. So we
just ignore it and proceed.
2014-12-26 22:20:17 +08:00
armink
762f18d743
[Ymodem]Change tabs to space.
2014-09-14 14:52:00 +08:00
armink
987532967f
[Ymodem]Change macro definition and code format.
2014-09-14 14:44:48 +08:00
armink
7121697a71
[Ymodem]Add device open flag as input parameter to ymodem function.
2014-09-13 11:22:01 +08:00
armink
ed57c7c32a
[Ymodem]When active end the session, It can config send CAN number.
2014-09-13 11:15:48 +08:00
bernard
6045b3a075
[LogTrace] Use OFLAG_RDWR to replace FLAG_RDWR when opening a device.
2014-09-11 12:53:23 +08:00
Grissiom
2aa51d42f9
ymodem: increase the default RYM_CHD_INTV_TICK
...
Frequent 'C' on the handshake will confuse some sender(lrzsz for
example).
2014-07-15 14:58:05 +08:00
Grissiom
ff1eb2cbc9
ymodem: refactor _rym_read_code
...
Make fast path fast and slow path slow.
2014-07-14 18:45:46 +08:00
Grissiom
299cccfb26
logtrace: add log_session_lvl
...
log_session_lvl is suitable for performance critical places where in
most cases, the log is turned off by level. If the session is const and
the level is greater than session->lvl, the whole function will be
optimized out.
2014-04-10 21:22:39 +08:00
Grissiom
12728bcdff
logtrace: add const modifier to the APIs
...
Compiler may do more optimization when the parameter is const.
2014-04-10 21:22:39 +08:00
Grissiom
d0251a523a
log_trace: fix the memmove use
...
The first parameter of memmove is the dst, not src. Besides, fix the
wrong move size.
2013-10-11 17:23:30 +08:00
Grissiom
5674198759
components/utilities: add ymodem
...
Real-YModem implemented a flexible YModem support. It use callback-based
structure to let the user application to deal with the data. It contains
3 examples:
1. echo.c: write the data recieved on YModem to an other device
2. null.c: discard the YModem data
3. tofile.c: write the data to the file system
Currently, it does not support batch file transmission.
2013-10-09 23:26:42 +08:00
Grissiom
05651e7c66
logtrace: only export cmd when finsh is enabled
2013-09-26 11:49:33 +08:00
Grissiom
2a20337707
logtrace: adjust the log values
...
logtrace only use odd number of log levels. So the use could set some
custom level amount them.
2013-09-23 15:13:45 +08:00
Grissiom
519982fa74
logtrace: add LOG_TRACE_VERBOSE log level
2013-09-23 15:10:02 +08:00
Grissiom
783a6a6717
logtrace: cleanup code and fix compiling warnings
2013-09-23 13:13:03 +08:00
bernard
0bf7ed76cf
Merge branch 'master' of https://github.com/RT-Thread/rt-thread
2013-09-17 11:07:36 +08:00
bernard
77096894f9
change the compiling macro before DFS option
2013-09-17 11:07:24 +08:00
Grissiom
ea66b820e1
log_trace: cleanup
2013-09-03 16:09:16 +08:00
Bernard Xiong
e156a8d62b
Move logtrace to utilites
2013-06-30 21:51:41 +08:00
Bernard Xiong
72782e9203
convert end of line
2013-01-08 05:05:02 -08:00
wuyangyong
22049c80d5
fixed zmodem syntax error.
...
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1836 bbd45198-f89e-11dd-88c7-29a3b14d5316
2011-12-12 07:31:51 +00:00
itspy.wei
4fbb2e6d21
code update
...
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1521 bbd45198-f89e-11dd-88c7-29a3b14d5316
2011-06-17 13:35:24 +00:00
itspy.wei
459e51fb46
add DFS_USING_WORKDIR pre-define
...
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1443 bbd45198-f89e-11dd-88c7-29a3b14d5316
2011-06-02 03:55:00 +00:00
itspy.wei
ac97bc17bd
fix memory leak problem
...
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1358 bbd45198-f89e-11dd-88c7-29a3b14d5316
2011-03-31 05:39:43 +00:00
itspy.wei
a019ea904f
add crc.h
...
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1357 bbd45198-f89e-11dd-88c7-29a3b14d5316
2011-03-30 06:56:26 +00:00
itspy.wei
770163fe95
file transmission trough zmodem protocol.
...
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1356 bbd45198-f89e-11dd-88c7-29a3b14d5316
2011-03-30 06:14:22 +00:00
itspy.wei
b495cb50fc
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1305 bbd45198-f89e-11dd-88c7-29a3b14d5316
2011-03-04 06:26:39 +00:00
itspy.wei
6f4ad3b626
添加 zmodem
...
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1302 bbd45198-f89e-11dd-88c7-29a3b14d5316
2011-03-03 07:39:36 +00:00