Commit Graph

31 Commits

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