tyx
b80f581562
[compilers] Fix c/c++ compilation warnings and errors
2022-04-06 10:27:38 +08:00
guozhanxin
61f1f698ec
Fixed the issue LOG_HEX no output at asyn mode.
2022-03-26 21:58:49 +08:00
Man, Jianting (Meco)
8b58577230
[ulog][rtc][time][bug] solve the interference when enable the ulog timestamp ( #5687 )
...
* [ulog] 解决ulog开启时间戳后与libc time以及rtc驱动相关函数干涉的问题
* ulog:当发生递归输出时,后续递归想要输出的内容可能会因为防范递归的判断而无法输出
因此修改输出规则,在发生递归时,采用简单的,无格式的方式直接输出。这样既保证不会发生递归输出,也可以保证递归输出的部分可以正常输出。
* [ulog] size_t->rt_size_t NULL->RT_NULL
2022-03-21 14:06:17 +08:00
Man, Jianting (Meco)
86a10716cd
优化ULOG_OUTPUT_FLOAT,避免使用内置libc的vsnprintf函数 ( #5632 )
2022-03-07 01:14:22 +08:00
WillianChan 陈威廉
4106c43753
[fix][components][utilities][var_export]replace the search algorithm and fix some problems ( #5611 )
...
* [fix][components][utilities]adjust the order of compiler macros
Signed-off-by: WillianChan <chentingwei@rt-thread.com>
* [modify][components][utilities]This PR complies with RT-Thread code specification
Signed-off-by: WillianChan <chentingwei@rt-thread.com>
* [fix][components][utilities][var_export]replace the search algorithm and fix some problems
Signed-off-by: WillianChan <chentingwei@rt-thread.com>
* [modify][components][utilities][var_export]make the code more beautiful
Signed-off-by: WillianChan <chentingwei@rt-thread.com>
2022-02-23 23:55:27 +08:00
WillianChan 陈威廉
49ccbdb851
[fix][components][utilities]adjust the order of compiler macros ( #5593 )
...
* [fix][components][utilities]adjust the order of compiler macros
Signed-off-by: WillianChan <chentingwei@rt-thread.com>
* [modify][components][utilities]This PR complies with RT-Thread code specification
Signed-off-by: WillianChan <chentingwei@rt-thread.com>
2022-02-14 14:03:34 +08:00
Man, Jianting (Meco)
d4b5555b7e
移除localtime_r多余的声明 ( #5590 )
2022-02-10 18:19:33 +08:00
guozhanxin
af702e048d
[ulog] Optimize code to improve readability.
2022-02-10 10:22:08 +08:00
guozhanxin
26c511475e
[ulog] Fixed the problem of abnormal log output at the INIT_BOARD_EXPORT level.
2022-02-10 10:22:08 +08:00
Meco Man
169fca84f7
[ymodem] silent warnings
2022-01-18 01:34:55 +08:00
liukangcc
3d2e23ec1c
[update] move dfs_posix.h to legacy/dfs/dfs_posix.h
2022-01-14 23:09:32 +08:00
Meco Man
f89a162ea3
[core] 使用rt_memcpy rt_memset代替memcpy memset
2022-01-09 00:23:18 +08:00
Meco Man
5187d75af5
[armclang] 使用__clang__代替__CLANG_ARM
2021-12-29 14:15:38 -05:00
Meco Man
ed09f38012
[libc] remove RT_USING_LIBC
2021-12-30 01:27:25 +08:00
Bernard Xiong
36d5154256
Merge pull request #5320 from mysterywolf/pse-master
...
[POSIX] move PSE branch to master
2021-12-05 13:16:39 +08:00
armink
4399aed641
fix build error.
2021-12-03 13:34:03 +08:00
armink
d8d15017bc
[ulog] Add ulog backend filter.
2021-12-03 12:04:20 +08:00
Meco Man
04d3d13081
替换宏定义
2021-11-30 10:39:40 -05:00
Meco Man
7c789d4b11
revise some RT_USING_POSIX to RT_USING_POSIX_DEVIO
2021-11-24 09:47:55 -05:00
rtthread-bot
a702763dbc
Merge remote-tracking branch 'rtt_gitee/gitee_master'
2021-10-15 08:20:37 +00:00
guo
39197b438d
Merge pull request #4885 from willianchanlovegithub/WillianChan
...
[add][components][utilities]Add the Var Export component
2021-10-11 11:02:14 +08:00
Bernard Xiong
e0c7371b02
Merge pull request #5114 from armink/fix_ulog
...
[utilities][ulog] Increase the usec check time.
2021-10-11 01:53:21 +08:00
armink
1f5a4ffe02
[utilities][ulog] Increase the usec check time.
2021-10-09 16:55:46 +08:00
shishirong
797c80a7cb
fix ulog compile error.
2021-10-08 10:03:01 +08:00
Meco Man
c360688714
使用poll.h代替dfs_poll.h
2021-09-11 11:56:54 -04:00
BernardXiong
51e0559631
[utest] fix libc issue
2021-09-11 18:34:13 +08:00
shishirong
ab86b7490d
fix Macro definition syntax error in ulog.c
2021-09-09 17:02:21 +08:00
WillianChan
e53ae3ddfa
[modify][components][utilities]check if the ve_exporter_num is out of bounds.
...
Signed-off-by: WillianChan <chentingwei@rt-thread.com>
2021-09-02 20:03:22 +08:00
WillianChan
4b2913a898
[modify][components][utilities]add qemu-a9 section information for var export and fix some problems.
...
Signed-off-by: WillianChan <chentingwei@rt-thread.com>
2021-09-02 18:06:38 +08:00
WillianChan
a3ef89071b
[modify][components][utilities]modify error code
...
Signed-off-by: WillianChan <chentingwei@rt-thread.com>
2021-08-31 17:32:34 +08:00
WillianChan
5a020de4e8
[modify][components][utilities]Modify the gcc section definition of a Var Export component
2021-08-31 17:23:48 +08:00
WillianChan
9f543f7065
[add][components][utilities]Add the Var Export component
...
Signed-off-by: WillianChan <willianchan_lovelife@foxmail.com>
2021-08-31 17:23:48 +08:00
Bernard Xiong
bd44c1e590
Merge pull request #4970 from cndabai/master
...
Remove C Style Command Shell
2021-08-25 19:03:52 +08:00
guozhanxin
9e558ab130
【utest】fix TC_FAIL_LIST_MARK_FAILED 下标计算错误的问题
2021-08-24 17:06:51 +08:00
马志远
221da7f464
Remove C Style Command Shell
2021-08-23 17:30:05 +08:00
guozhanxin
38f5fec63e
[utest] 完善代码,添加对tc_num的判断
2021-08-19 11:21:31 +08:00
梁林
a6bf03a0c8
多个ulog后端时不支持support_color后端的log指针偏移错误,导致保存到文件的日志出现乱码。
2021-08-19 09:13:16 +08:00
guozhanxin
4af99b0dca
[add] utest add fail_list.
2021-08-18 09:39:21 +08:00
Sherman
491524cb96
[components]rt-link v0.2.0 新特性:
...
1. service 通道增加【连接状态】属性
2. service 通道增加发送消息质量配置,ACK、CRC 可配置开关;
3. 发送接口支持阻塞、非阻塞两种发送方式;
4. 已对接到 device 框架,支持 rt_device 接口操作
5. 已对接到 DFS 框架,支持 POSIX 接口操作
6. 移除 hw_port 目录,改为软件包方式添加 hw_port
7. 修复已知 BUG
2021-08-12 18:10:49 +08:00
Bernard Xiong
0dc972bee6
Merge pull request #4707 from armink/fix_ulog
...
[ulog] Add output locker enabled API
2021-05-21 15:02:22 +08:00
Bernard Xiong
5fb709d72f
Merge pull request #4706 from mysterywolf/ymodem
...
[ymodem] 修改YMODEM_USING_FILE_TRANSFER功能的开启条件
2021-05-21 15:01:53 +08:00
armink
e0b9987508
[ulog] Add output locker enabled API
...
Signed-off-by: armink <armink.ztl@gmail.com>
2021-05-19 18:17:37 +08:00
Meco Man
4aaf52ae9e
[ymodem] 修改YMODEM_USING_FILE_TRANSFER功能的开启条件
...
目前开启的逻辑存在问题,ymodem的文件传输功能开启的前提是得有完整的文件系统,
但是目前,这个开启逻辑错了。
用户选择YMODEM_USING_FILE_TRANSFER功能后select DFS没有任何意义,因为除了需要依赖DFS之外还要依赖其他的例如FATFS,需要和SDIO适配等等等
正确的做法应该是用户配置好完整的文件系统后,ymodem文件传输才能有机会开启,
因此是depends on DFS 而非select DFS
更改之后,只要用户开启了文件系统,在选定YMODEM时,会自动开启文件传输功能,这也是用户希望看到的,直接一键搞定,不需要再多点一步
2021-05-19 12:59:33 +08:00
Sherman
21f9e56253
[add] add new component: rt-link
2021-05-15 16:52:49 +08:00
Bernard Xiong
e3c19a8463
Merge pull request #4601 from armink/fix_ulog
...
[ulog] Fix thread info show when kernel not startup.
2021-04-22 13:44:40 +08:00
Bernard Xiong
3fa35a398b
Update ulog.c
...
Use `rt_thread_self()` to determine whether the scheduler is started or not.
2021-04-19 06:50:58 +08:00
armink
2ea39b4f05
[ulog] Using gettimeofday for timestamp get.
2021-04-15 14:15:39 +08:00
armink
3ae6ca1fb0
[ulog] Fix thread info show when kernel not startup.
2021-04-15 14:10:27 +08:00
Meco Man
a6ac475df3
[ymodem] Check the file path's legitimacy of 'sy' command
2021-04-14 01:34:28 +08:00
Meco Man
3c05a4e719
[compoenets] auto & manual formatted
2021-03-08 18:19:04 +08:00
iysheng
0b2212f773
[components][ulog] Add support with timestamp print in function ulog_hexdump
2021-03-02 12:11:19 +08:00
liruncong
0208fc5546
[components]SECTION=>RT_SECTION(与catch2中SECTION冲突)
2021-02-09 23:25:46 +08:00
chenyong
cddf947863
[utilities][ulog] Add LOG_RAW ringbuffer to fix printing line limit issue
...
Signed-off-by: chenyong <chenyong@rt-thread.com>
2021-02-01 11:22:05 +08:00
chenyong
43b1daf325
[utilities][ulog] fix ulog backend color log length calculation error
...
Signed-off-by: chenyong <chenyong@rt-thread.com>
2021-01-21 18:58:57 +08:00
chenyong
87b5f3f51e
[components][utilities][ulog] Add backend filtering interface, add async log output control interface, ulog mutex change to semaphore
...
Signed-off-by: chenyong <chenyong@rt-thread.com>
2021-01-20 11:20:30 +08:00
yangjie
ef62febf1f
[SConscript]update group name
2020-12-19 16:49:11 +08:00
yangjie11
91261e25b9
[SConscript]rename group name
2020-11-20 13:38:11 +08:00
michael
3f3ff458ed
ulog:fixed compile err
...
syslog.c:154:34: error: unknown type name 'uint8_t'
2020-09-04 11:15:02 +08:00
michael
4bf1535c42
utest:fixed compile err
2020-08-29 22:45:22 +08:00
teh-c
d5e03ad5d1
rt_snprintf多了个参数。
2020-07-03 17:10:43 +08:00
Chinese66
2822ec377d
Update ry_sy.c
...
修改了读取不到文件大小,导致的文件传输的问题,问题说明在
https://www.rt-thread.org/qa/forum.php?mod=viewthread&tid=423781
2020-03-11 11:56:35 +08:00
a1012112796
73cae9564b
[ULOG] fix raw size bug for backend which don't suport color
2020-01-07 11:22:26 +08:00
任光伟
9893f64610
ulogbuffer增加1,为\0预留空间
...
Signed-off-by: RGW <rgw5267@gmail.com>
2019-12-23 10:49:01 +08:00
Bernard Xiong
457759ded7
[Util] fix the dependence of file feature in ymodem
2019-12-17 13:38:49 +08:00
Steven Liu
3c5f46468c
[components]: utilities: ymodem: Add ry_sy function.
...
Use "ry" to receive files and use "sy file_path" to
send files. Default console uart and you can choose
any other uart if you want.
Signed-off-by: Steven Liu <steven.liu@rock-chips.com>
2019-12-13 11:49:53 +08:00
armink
e59339e4b8
[components] remove libc dependency in ulog and RTC driver.
2019-11-14 18:09:55 +08:00
chenyong
2b50d3d32c
[components][finsh] Decouple RT_USING_DEVICE dependency for msh feature
...
Signed-off-by: chenyong <1521761801@qq.com>
2019-09-25 20:14:39 +08:00
liruncong
7953cdfae3
[components/utilities/utest]修正无测试用例时,执行utest_run时跑飞问题. utest_init增加__CLANG_ARM编译开关判断
2019-09-14 22:44:44 +08:00
armink
8feb6af992
[component/ulog] Fix ulog hexdump show issue.
2019-08-03 16:52:37 +08:00
tyustli
a559179e6f
fix cpp thread class error
2019-06-24 15:59:26 +08:00
armink
11b0c65921
[components][ulog] Make the asynchronous log output more timely.
2019-05-16 09:55:35 +08:00
armink
415d12220b
[components][ulog] Fix the log length error when using multiple non-color backends.
2019-05-15 08:57:45 +08:00
yangjie
36c78e5480
[components/utilities]delete log_trace,remove log_trace menu from Kconfig
2019-04-23 14:00:18 +08:00
armink
fa4d4ab7cf
Update all of debug log definition to DBG_TAG and DBG_LVL.
2019-04-12 10:18:57 +08:00
MurphyZhao
e5c5215917
[components/utilities/utest] 增加测试运行测试打印
...
Signed-off-by: MurphyZhao <d2014zjt@163.com>
2019-03-19 14:27:39 +08:00
armink
584593071e
[component][ulog] Fixed the thread name output.
2019-03-09 15:49:32 +08:00
armink
0d7ba79219
Remove the DBG_COLOR and DBG_ENABLE definition.
2019-03-06 17:54:30 +08:00
zylx
e2c0749d04
[components][ymodem]ymodem 握手阶段增加延时,防止数据接收不全
2019-02-21 11:09:41 +08:00
MurphyZhao
e3546a5043
[components][utest] 增加 utest_help,用于输出帮助信息
...
[components][utest] 对于不支持的测试用例,增加输出日志
Signed-off-by: MurphyZhao <d2014zjt@163.com>
2019-02-15 12:04:36 +08:00
MurphyZhao
a305c6cca9
[components][utest] utest_run 增加 loop 功能,方便持续运行单一一个测试用例;
...
[components][utest] utest_run 指定测试用例名字的时候,增加通配符 `*` 的支持,及支持仅指定测试用例名字的前部分字节来运行测试用例。该功能会执行匹配成功的所有测试用例。
Signed-off-by: MurphyZhao <d2014zjt@163.com>
2019-02-14 15:28:56 +08:00
MurphyZhao
0dc7b9a5a2
[components][utest] utest 延时启动
...
在使用 utest 的线程模式的时候,utest_run 命令执行完成后,finsh 会输出 `msh >`,干扰了 utest 内部的日志结构,因此默认在 utest 启动前增加延时。
Signed-off-by: MurphyZhao <d2014zjt@163.com>
2019-02-14 12:03:29 +08:00
MurphyZhao
82f022f6f0
[components][utest] 增加 utest 线程模式
...
Signed-off-by: MurphyZhao <d2014zjt@163.com>
2019-02-13 14:37:08 +08:00
Bernard Xiong
14fd4e34a9
Merge pull request #2249 from PiscesLyn/patch-2
...
ymodem support multiple files transmission
2019-01-30 09:12:40 +08:00
MurphyZhao
655c4ad36b
[component][utest] 增加 utest 日志输出级别配置,提供 ASSERT 和 ALL 两个级别,便于测试用例控制 log 输出
...
Signed-off-by: MurphyZhao <d2014zjt@163.com>
2019-01-25 17:25:29 +08:00
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