Commit Graph

421 Commits

Author SHA1 Message Date
liukangcc bf94a69afd [add] mailbox testcase. 2021-09-09 10:27:48 +08:00
tyustli 0b55a75211
[fix] change chinese comment to english and fix some wrong character 2021-09-08 12:25:16 +08:00
tyustli f4abcef96f [add] utest kernel mutex_tc.c file 2021-09-06 15:30:08 +08:00
guo 877bb072cf
Merge pull request #5014 from mysterywolf/finsh
[finsh] 修复由于移除finsh导致__cmd_xxx命令无法使用的问题
2021-09-05 19:49:43 +08:00
Meco Man e18d44940f [finsh] 修复由于移除finsh导致__cmd_xxx命令无法使用的问题 2021-09-05 01:57:26 -04:00
guozhanxin 389077897e [add] signal testcases 2021-09-04 18:04:57 +08:00
WillianChan f7657a94b5 [add][examples][var_export]add sample code for the var_export component
Signed-off-by: WillianChan <chentingwei@rt-thread.com>
2021-09-02 20:20:29 +08:00
Sherman 7c24a01979 [utestcase] 添加 message queue 测试用例 2021-09-02 17:43:58 +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 fe4bec08a5 【ci】添加 timer、irq 测试 2021-08-24 17:20:12 +08:00
guozhanxin 0ab5affee9 【utestcase】修复 timer_tc.c 延时函数使用错误的问题 2021-08-24 17:07:46 +08:00
tyustli e24e625c5d
【修改】删除代码中的多余空格 2021-08-23 18:45:18 +08:00
马志远 221da7f464 Remove C Style Command Shell 2021-08-23 17:30:05 +08:00
tyustli 0596a98c80 [add]kernel timer testcase 2021-08-23 12:37:54 +08:00
supperthomas b4a46f8bbe add the interrupt disable 2021-08-19 21:47:19 +08:00
supperthomas 39353f5c14 fix the space 2021-08-19 20:49:12 +08:00
supperthomas 210ff3c9df fix the space 2021-08-19 20:49:12 +08:00
supperthomas c8d73a76ce add the utest of irq 2021-08-19 20:49:08 +08:00
liukangcc f8c12d0f21 [add] event test case. 2021-08-19 08:50:14 +08:00
Bernard Xiong 33a50d0eb0
Merge pull request #4939 from luckyzjq/semaphore_test
[add] add semaphore testcase src code and Kconfig
2021-08-16 00:06:50 +08:00
guozhanxin 5074c86dce [ci][autotest] add ipc.conf 2021-08-15 16:17:15 +08:00
Bernard Xiong 9cbb6a741c
Merge pull request #4931 from ShermanShao/master
[components]rt-link v0.2.0 新特性:
2021-08-12 23:14:39 +08:00
tyustli 8d1f0758d6 [add] semaphore testcase ci config 2021-08-12 19:48:27 +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
tyustli 141e6a03e9 [add] add semaphore testcase src code and Kconfig 2021-08-12 11:43:15 +08:00
Meco Man 98c72007d2 [example] replace RT_IPC_FLAG_FIFO with RT_IPC_FLAG_PRIO 2021-07-18 12:52:04 +08:00
guozhanxin 3bc6d7c414 [utestcase] 完善测试用例集合的 README 2021-07-08 13:39:56 +08:00
DavidLin1577 e0b00b21f5 [examples/test]update rtc_test.c 2021-07-06 18:03:15 +08:00
Bernard Xiong 2341ba037b
Merge pull request #4809 from KyleChenjh/serial_v2_tc
[testcase] 增加serial_v2的测试用例
2021-06-24 21:29:13 +08:00
chenjh 312753686b [testcase] 增加serial_v2的测试用例 2021-06-23 11:04:36 +08:00
guozhanxin cc5fa682cd [ci] Simplified configuration files. 2021-06-18 19:43:57 +08:00
Henson 89717a4546 [ci] add riscv64 autotest. 2021-06-17 21:50:46 +08:00
guo b516cbd2ae
Merge pull request #4790 from mysterywolf/errno
[master][rtlibc] remove libc_errno.h & libc_limits.h
2021-06-13 09:36:29 +08:00
Meco Man a3b1caf952 [example] 解决潜在内存泄漏问题
重新解决冲突,源自:https://gitee.com/rtthread/rt-thread/pulls/48/files
2021-06-12 16:11:57 +08:00
guozhanxin 4d213254c3 [ci] add kernel/mem testcase. 2021-06-03 15:08:31 +08:00
guozhanxin 2c119a5c48 add memheap testcase for ac6 Oz optimization. 2021-06-03 15:00:13 +08:00
zhouji 3350b0ba4e [update] 整理cortex-a kconfig菜单,并更新相关BSP的配置。 2021-05-27 17:44:44 +08:00
Meco Man a5f7635f31 remove libc_errno.h & libc_limits.h 2021-05-22 02:50:35 +08:00
Sherman ce0c36422c [fix] 修改格式错误 2021-05-15 17:21:05 +08:00
Sherman 21f9e56253 [add] add new component: rt-link 2021-05-15 16:52:49 +08:00
zhouji 1523e4680d [add] 添加gicv3中断控制器代码,更新menuconfig配置选项与utest的config.h 2021-05-14 16:08:31 +08:00
guozhanxin 5767c2e0f4 【完善】SConscript 脚本文件 2021-05-12 09:50:40 +08:00
guozhanxin e3ee4f2846 [更新]补充文档链接 2021-05-11 18:45:43 +08:00
guozhanxin 7d57170a68 【更新】README.md 2021-05-11 09:23:11 +08:00
guozhanxin 3906f3b948 [add] auto test ci. 2021-05-10 20:34:35 +08:00
Meco Man f0cc3e861a [example] 对版权信息进行人工扫描并添加确实的版权信息 2021-03-08 07:19:27 +08:00
Meco Man 08af426f01 [example] 格式化整理 2021-03-07 08:34:04 +08:00
tmmdh 9db4d44638 Merge branch 'master' of https://github.com/RT-Thread/rt-thread 2021-01-20 18:45:20 +08:00
David Lin 037ef1f51f
Update net_test.c
clear the server_addr.sin_zero to '0'.
2021-01-05 18:32:25 +08:00
yangjie ef62febf1f [SConscript]update group name 2020-12-19 16:49:11 +08:00
yangjie11 ba83ddc3c4 [SConscript] change libcpu to LIBARCH,and correcte letter case 2020-11-30 15:52:43 +08:00
yangjie11 91261e25b9 [SConscript]rename group name 2020-11-20 13:38:11 +08:00
tmmdh 55c0a9f279 fix the conflicting file. 2020-10-25 11:54:06 +08:00
Bernard Xiong e6743e8c47
Merge pull request #3959 from DavidLin1577/patch-6
Update net_test.c
2020-10-18 14:19:57 +08:00
Bernard Xiong fe66001bd9
Merge pull request #3969 from DavidLin1577/patch-12
Update listdir.c
2020-10-18 14:10:09 +08:00
David Lin adc5dab5b2
Update listdir.c
1.close dir before return;
2.fixed indentation.
2020-10-17 11:53:11 +08:00
David Lin b0591443e3
Update writespeed.c
Fixed indentation
2020-10-17 11:26:27 +08:00
David Lin 6e6dfb0003
Update net_test.c
Fixed  pointer check, indentation
2020-10-17 10:52:29 +08:00
David Lin 85e32ae58e
Update udpclient.c
tcpclient->udpclient
2020-10-14 11:59:20 +08:00
David Lin f8a20ee433
Update net_test.c
申请内存失败时,直接return,此前代码goto _exit进行rt_free空指针,会造成内存泄漏
2020-10-14 09:56:53 +08:00
David Lin 105d8945f5
Update tcpclient.c
接收->发送
2020-07-17 16:06:33 +08:00
Bernard Xiong eae89d14a0
Merge pull request #3683 from DavidLin1577/patch-2
Update udpserver.c
2020-06-13 20:06:40 +08:00
Bernard Xiong 243324ffa6
Merge pull request #3682 from DavidLin1577/patch-1
Update udpclient.c
2020-06-13 19:17:11 +08:00
David Lin e4f463ed13
Update tcpserver.c
This is 'tcp server', not is 'tcp client'
tcpclient -> tcpserver
2020-06-13 11:01:24 +08:00
David Lin c74e40dbe5
Update udpserver.c
This is 'udp server', not is 'tcp client'
tcpclient -> udpserver
2020-06-13 10:57:38 +08:00
David Lin 79e4fed9ff
Update udpclient.c
This is 'udp client', not is 'tcp client', so 
tcpclient -> udpclient
2020-06-13 10:52:54 +08:00
David Lin 993835b5ed
Update tcpsendpacket.c 2020-04-17 18:44:15 +08:00
David Lin 8e57dcb723
Update tcpsendpacket.c 2020-04-17 18:39:04 +08:00
majianjia 2014663660 Export file examples to MSH
also:
- change static buffer to dynamiclly allocated buffer.
- replace Chinese comment to English comment in some files.
- add apache-2 license
2020-04-12 23:56:43 +01:00
EvalZero b242b1e6f6 [examples][pm]add wakeup application for pm. 2019-05-09 20:55:35 +08:00
Bernard Xiong 2bf9ba0675
Merge pull request #2661 from BernardXiong/pre-release_v4.0.1
Pre-release for v4.0.1
2019-05-09 12:57:47 +08:00
EvalZero d51e0783ba [components][pm]fix some issues with low power components 2019-05-07 21:03:48 +08:00
EvalZero 623ddc62b2 [components][pm]adapt to the new power management interface 2019-05-06 19:57:22 +08:00
Bernard Xiong 6e89f70e92 [examples] remove nanopb example codes 2019-04-28 09:35:54 +08:00
armink fa4d4ab7cf Update all of debug log definition to DBG_TAG and DBG_LVL. 2019-04-12 10:18:57 +08:00
armink 0d7ba79219 Remove the DBG_COLOR and DBG_ENABLE definition. 2019-03-06 17:54:30 +08:00
HubretXie 57da7246d8
初始化宏使用错误 2018-12-19 20:12:15 +08:00
zylx 4fd6f2ef53 [examples][test]Perfect test function 2018-12-12 17:13:30 +08:00
MurphyZhao e9c795e8bc [examples][network] 更新 TCP/UDP 例程 uage
Signed-off-by: MurphyZhao <d2014zjt@163.com>
2018-11-06 09:46:20 +08:00
MurphyZhao b2d4dd0ba7 [examples][network] 更新 UDP client & server
Signed-off-by: MurphyZhao <d2014zjt@163.com>
2018-11-05 16:38:01 +08:00
MurphyZhao 6c62f5d9fe [examples][network] 更新 tcp client & server 例程
Signed-off-by: MurphyZhao <d2014zjt@163.com>
2018-11-05 15:17:51 +08:00
armink 12a803bcc9 [component] Add ulog logger basic component. 2018-10-30 09:11:42 +08:00
armink 2d59fe0310 [DeviceDriver] Add power management device driver. 2018-10-29 09:54:52 +08:00
armink dff8a2c513 [DeviceDriver] Add rbb (ring block buffer) data structure. 2018-09-12 08:59:58 +08:00
朱天龙 (Armink) 69c95944eb
Merge pull request #1643 from chenyong111/sal
Add SAL (socket abstraction layer) framework
2018-07-19 08:25:56 +08:00
liang yongxiang 2c7fcf7d83 [examples] fixed bug when device not found 2018-07-18 19:21:46 +08:00
chenyong 8cda48a132 [net][sal] Add SAL (socket abstraction layer) framework 2018-07-18 13:34:13 +08:00
liang yongxiang 707a0915e4 [examples] fixed gcc warning: value computed is not used 2018-03-13 17:38:53 +08:00
aozima e20fb2f5b2 [examples] update:
1. cleanup for posix dfs_net.
2. fixed recv buf overwrite.
3. format code.
2018-02-06 18:59:24 +08:00
aozima ff811a93ff [examples] remove unused old code. 2018-02-06 18:19:17 +08:00
liu2guang 1a7e251423 [Examples] add RTC drive test finsh command. | 添加RTC驱动测试finsh命令. 2018-01-17 23:42:10 +08:00
Bernard Xiong 8123ab4cd7 [Examples] Remove unnecessary files 2018-01-15 18:59:57 +08:00
JasonJiaJie de0a201e44 [Termios]1. Add termios test. 2.Add termios.h
1. Add termios test. 2.Add termios.h
2017-12-07 18:32:06 +08:00
tanek liang 33b97d9c5e [examples] fix bsp_directory parameter missing 2017-11-15 15:22:57 +08:00
tanek liang a752418065 [gui] fix rtgui_dc_end_drawing() too few arguments in function call 2017-11-12 22:21:59 +08:00
SummerGift 110ccb0602 add examples/network/chargen.c 2017-10-27 16:10:42 +08:00
SummerGift 8e0d9b4de5 update examples/network/tcpserver.c to rtt 3.0 test. 2017-10-27 16:10:42 +08:00
SummerGift 89cc00a91c update examples/network/udpclient.c examples/network/udpserver.c 2017-10-27 16:10:41 +08:00
SummerGift 1b37cd7dd0 update examples/network/tcpclient.c 2017-10-27 16:10:41 +08:00
liu2guang d47dd9a12c 修复无法重复使用finsh命令device_test进行驱动测试
1. 该问题是打开设备后, 出错或者成功后没有关闭设备而导致.
2017-10-02 23:30:46 +08:00
Bernard Xiong 5f4bcfa3e1 [examples] code cleanup. 2017-08-10 14:09:57 +08:00
SummerGift 0d33799d0d add some python example for tcp server and client. 2017-08-10 11:04:17 +08:00
SummerGift 07cc5047bb Complete some error handling when send or receive function returns a value is zero. 2017-08-10 10:47:51 +08:00
SummerGift f9ec093f51 correct some explain 2017-08-07 11:36:44 +08:00
heyuanjie87 d19f424909 简化操作接口 2015-09-06 15:05:47 +08:00
heyuanjie87 47b3a4d3cc 加入定时器使用范例 2015-09-02 22:03:16 +08:00
heyuanjie87 0def1a7691 添加mqtt客户端例程(注:由于条件限制仅在linux中测试通过) 2015-07-22 21:55:18 +08:00
Bright Pan a61d228b76 Nanopb is a plain-C implementation of Google's Protocol Buffers data
format. It is targeted at 32 bit microcontrollers, but is also fit for
other embedded systems with tight (2-10 kB ROM, <1 kB RAM) memory
constraints.(http://koti.kapsi.fi/jpa/nanopb/)

How to use the example:
	1. move examples/nanopb to bsp/xxxx/
	2. enable macro RT_USING_NANOPB in rtconfig.h
	3. regenerate the project file (scons --target=xxxx)
	4. rebuild the project
2015-03-10 18:24:17 +08:00
Grissiom fe603dd379 ymodem: fix examples due to new API 2014-11-03 11:46:57 +08:00
hduffddybz 7aff40f3f9 fix 2014-08-24 21:23:52 -08:00
hduffddybz 6ccfe9f374 fix 2014-08-24 21:16:02 -08:00
hduffddybz c1d0db700c add version checking 2014-08-24 21:12:47 -08:00
hduffddybz a8804d3503 correct netconn API usage 2014-08-18 00:41:03 -08:00
hduffddybz b833a5ca80 correct spelling error 2014-08-06 00:19:13 -08:00
Grissiom 1b878f256f examples/kernel: fix warnings issued by Clang
Fix some "unused variable" and "used before set" warnings.
2014-04-12 16:33:35 +08:00
Grissiom e336a9807a TC: if TC is enabled, add the TC dir to CPPPATH
Some component that depend on TC would like to include the tc_comm.h.
2013-12-24 12:08:22 +08:00
Grissiom 21fe463168 TC: delay longer in tc_stop 2013-12-23 10:47:15 +08:00
Grissiom fddbd836b4 TC: re-implement the loop feature
We should not use the _tc_stat to determine whether we should loop the
TCs. Use an other variable and introduce tc_loop FinSh command.
2013-12-23 10:42:39 +08:00
Grissiom f6bf69f233 TC: more tolerate for tick in TC thread 2013-12-21 13:18:46 +08:00
Grissiom f7b1421880 TC: expand TABs 2013-12-21 12:57:35 +08:00
Grissiom ac0e10bb83 TC: more tolerate on the timeout tick in semaphore_dynamic
With system that has RT_TICK_PER_SECOND is 1000, it's easy to get one
tick error.
2013-12-21 12:45:16 +08:00
Grissiom 5019b3ee14 TC: format code, expand TABs
No functional changes.
2013-12-21 11:59:22 +08:00
Grissiom 6b02886eb3 TC: print a summary after all the tests 2013-12-21 11:59:21 +08:00
Grissiom 9a679cc7d8 TC: fix the thread_delete
The tc thread should delay more time than tid2 in order to let it run
the test. The hard-coded "27" is not enough in some cases.
2013-12-20 10:52:51 +08:00
Grissiom bf640015e6 TC: clear the TC_STAT_RUNNING flag when tc forgot to do so
TCs are supposed to exit with the TC_STAT_RUNNING cleared. If it forgot
to do this, do it by ourselves.
2013-12-20 10:23:31 +08:00
Grissiom a51b5799f7 TC: fix the heap tests 2013-12-18 23:04:18 +08:00
Grissiom 752fe135cd TC: code cleanup 2013-12-18 22:21:31 +08:00
Grissiom b66c5ee074 TC: always print the test result despite the wait time 2013-12-18 22:20:10 +08:00
Grissiom a7c4d07fb7 TC: heap_realloc: check for realloc(ptr, 0) 2013-12-18 22:03:55 +08:00
Grissiom c6c6b5ef74 TC: semaphore_dynamic: code cleanup 2013-12-18 21:47:00 +08:00
Grissiom 4434c87a71 TC: release the sem in cleanup
The sem that has been created should be deleted. The sem that has been
inited should be detached.
2013-12-18 21:46:08 +08:00
Grissiom e9e8e3f3ca TC: do not use rt_sem_trytake to clean the sem
There can be a race condition that the sem has alread been detached
after we did the cleanup. Besides, there is a RT_IPC_CMD_RESET command
in rt_sem_control which is more clear in setting the sem values.
2013-12-18 20:52:55 +08:00
Grissiom a391e0a893 log_trace: add a in-mem-log example
After `log_trace_init()`, call `memlog_init`. It then turn the logtrace
into a "in-memory" logger which will buffer all the log in memory. It
also set a hook in idle to flush all the log into console. One may
create an other thread to flush the logs but idle might be the simplest
place to go.
2013-10-23 01:48:47 +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
yiyue.fang 5510dec187 fixed a syntax error
error: expected expression before 'void'
error: too many arguments to function
2013-04-10 00:17:52 +08:00
aozima 71297d15e2 fix spelling error by ziyi897, this commit fixes #74. 2013-04-02 16:13:11 +08:00
Grissiom b0c84dc305 remove gui examples
As part of RTGUI, we should also remove gui examples. Copy
demo/examples/* in RT-Thread/RTGUI to examples/gui in RTT When you need
them.
2013-02-24 18:19:31 +08:00
Grissiom f06c70feed sync with rtgui-0.6 2013-02-01 10:27:10 +08:00
Ming, Bai b4de7cce57 Re-normalizing the repo 2013-01-08 22:40:58 +08:00
Bernard Xiong 72782e9203 convert end of line 2013-01-08 05:05:02 -08:00
rogerz.zhang@gmail.com d573786d52 fix memory access error in list_tc() under bsp/simulator
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2550 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-12-29 08:11:38 +00:00
dzzxzz@gmail.com 62447b2cd8 sync RTGUI with github(https://github.com/RT-Thread/RTGUI) 9ae08379da5b698d6facc40bd0415de2e254ae9c
As always, full log is in GitHub.

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2449 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-11-26 02:42:52 +00:00
nongli1031@gmail.com 6773015c4a add tc_done()
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2381 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-10-30 01:13:54 +00:00
nongli1031@gmail.com aa0d3695e1 add rt_sem_treytalk()
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2380 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-10-30 00:55:48 +00:00
nongli1031@gmail.com 6fe2afed8c for rt-thread 1.1.0
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2372 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-10-26 03:36:13 +00:00
bernard.xiong@gmail.com 2cdbbf8b05 Fixed thread_delay test issue.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2371 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-10-25 08:54:26 +00:00
wuyangyong 8d4d8a8338 fixed bug: close sock when connect fail.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2287 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-09-10 14:01:30 +00:00
dzzxzz@gmail.com fcfdd06bab fixed a compiling error and change tabs to spaces
demo_view_benchmark.c:125:18: error: static declaration of
'_benchmark_onshow' follows non-static declaration
demo_view_benchmark.c:87:9: note: previous implicit declaration of
'_benchmark_onshow' was here

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2277 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-09-07 02:21:57 +00:00
dzzxzz@gmail.com 9707b6ce0b sync RTGUI with github(https://github.com/RT-Thread/RTGUI)
a8dac7ed473f381b7042cf9d14028488192624c5
As always, full log is in GitHub.

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2276 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-09-07 01:50:13 +00:00
dzzxzz@gmail.com 526de394b0 update RTGUI/SConscript
do not include demo_listview.c and demo_listview_icon.c 

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2255 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-08-13 08:39:03 +00:00