Commit Graph

233 Commits

Author SHA1 Message Date
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