Commit Graph

64 Commits

Author SHA1 Message Date
tmmdh 9db4d44638 Merge branch 'master' of https://github.com/RT-Thread/rt-thread 2021-01-20 18:45:20 +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
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
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
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
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
bernard.xiong@gmail.com d28cdf68d9 update testcase for kernel.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1849 bbd45198-f89e-11dd-88c7-29a3b14d5316
2011-12-19 07:08:06 +00:00
dzzxzz 9bb329daee update kernel examples
fixed an error in timer_control.c

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1730 bbd45198-f89e-11dd-88c7-29a3b14d5316
2011-09-26 02:50:43 +00:00
dzzxzz 2ab9a1602e fixed compiling error in lpc122x branch
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1721 bbd45198-f89e-11dd-88c7-29a3b14d5316
2011-09-23 05:23:46 +00:00
mbbill@gmail.com c9a5379a0c minor fix of cpuusage.c in example
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1632 bbd45198-f89e-11dd-88c7-29a3b14d5316
2011-07-15 14:45:08 +00:00
mbbill@gmail.com 8e8fa0035d add reentrance check for lwip arch/ethernetif; convert an example to utf-8 format.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1495 bbd45198-f89e-11dd-88c7-29a3b14d5316
2011-06-12 12:02:14 +00:00
mbbill@gmail.com 864bd11802 Add reentrance check. Put kernel debug switch together.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1494 bbd45198-f89e-11dd-88c7-29a3b14d5316
2011-06-12 10:01:48 +00:00
mbbill@gmail.com 70c031362a add a test case for blocking mailbox send
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1472 bbd45198-f89e-11dd-88c7-29a3b14d5316
2011-06-08 16:40:46 +00:00
bernard.xiong@gmail.com ceda7d874e add CPU usage example code.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1282 bbd45198-f89e-11dd-88c7-29a3b14d5316
2011-02-20 15:15:04 +00:00
bernard.xiong@gmail.com fdfe4f4781 add RT_USING_TC in SConscript.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1191 bbd45198-f89e-11dd-88c7-29a3b14d5316
2010-12-12 23:37:14 +00:00
qiuyiuestc 010afcef48 fix kernel testcase fail issue, need to be reviewed
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1159 bbd45198-f89e-11dd-88c7-29a3b14d5316
2010-11-30 11:36:34 +00:00
bernard.xiong f01f25b451 remove examples depend.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1087 bbd45198-f89e-11dd-88c7-29a3b14d5316
2010-11-22 01:50:05 +00:00
bernard.xiong@gmail.com 10732a76e9 cleanup scons building script
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1065 bbd45198-f89e-11dd-88c7-29a3b14d5316
2010-11-20 12:31:00 +00:00
qiuyiuestc 3048d23935 fix size issue in memp_simple.c
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@886 bbd45198-f89e-11dd-88c7-29a3b14d5316
2010-08-30 13:59:36 +00:00
bernard.xiong c253f349d9 add timer timeout example.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@783 bbd45198-f89e-11dd-88c7-29a3b14d5316
2010-06-29 09:34:12 +00:00
bernard.xiong 030b39fad4 fix compiling error.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@685 bbd45198-f89e-11dd-88c7-29a3b14d5316
2010-05-02 12:06:28 +00:00
bernard.xiong 190324c7a6 fix Chinese comments.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@618 bbd45198-f89e-11dd-88c7-29a3b14d5316
2010-04-14 00:00:41 +00:00
bernard.xiong adcbe9d53f fix wrong comments in dynamic simple example.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@613 bbd45198-f89e-11dd-88c7-29a3b14d5316
2010-04-12 15:55:06 +00:00
gary.li.wenchao.4 8f431e61bb fixed parameters fro mempool_simple_init
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@570 bbd45198-f89e-11dd-88c7-29a3b14d5316
2010-04-01 12:04:47 +00:00
bernard.xiong 1c2f82359c only include finsh.h when RT_USING_FINSH is defined.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@563 bbd45198-f89e-11dd-88c7-29a3b14d5316
2010-03-31 22:52:34 +00:00
bernard.xiong 34e894f8ac fix compiling issue.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@558 bbd45198-f89e-11dd-88c7-29a3b14d5316
2010-03-30 02:40:59 +00:00