summaryrefslogtreecommitdiff
path: root/components
AgeCommit message (Collapse)Author
2013-10-18finsh: refactor the control key handlingGrissiom
We split the history handling form the key handling. So we could handle the direction key even if the history is disabled. As a "side effect", I also remove the unnecessary "use_history" bit.
2013-10-17Merge pull request #162 from joyhope/masterBernard Xiong
UART DMA tx_complete() with buffer information
2013-10-17simulator/jffs2: remove _TIME_T_DEFINED when built by VC++prife
_TIME_T_DEFINED was pre-defined in order to build jffs2 with VC. While it may cause many side effects.
2013-10-11Merge pull request #168 from grissiom/dfs-fixBernard Xiong
DFS: add dfs_file_flush prototype in dfs_file.h
2013-10-11log_trace: fix the memmove useGrissiom
The first parameter of memmove is the dst, not src. Besides, fix the wrong move size.
2013-10-11DFS: add dfs_file_flush prototype in dfs_file.hGrissiom
2013-10-09Merge pull request #167 from grissiom/ymodemBernard Xiong
components/utilities: add ymodem
2013-10-09components/utilities: add ymodemGrissiom
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-10Merge branch 'master' of https://github.com/RT-Thread/rt-threadbernard
2013-10-09fix the line too long issuebernard
2013-09-28DFS/jffs2: fix bug when umount jffs2prife
found by haitao5198 clear mount parition device talbe when jffs2 mount falied
2013-09-28DFS/jffs2: fix file mode init bug in jffs2_open/opendirprife
found by haitao52198 URL:http://www.rt-thread.org/phpBB3/viewtopic.php?f=3&t=3112&p=17153#p17153
2013-09-26msh: only export cd/pwd when DFS_USING_WORKDIR is setGrissiom
2013-09-26logtrace: only export cmd when finsh is enabledGrissiom
2013-09-24notification function: rt_err_t (*tx_complete)(rt_device_t dev, voidjoyhope
*buffer) with buffer pointer
2013-09-23logtrace: adjust the log valuesGrissiom
logtrace only use odd number of log levels. So the use could set some custom level amount them.
2013-09-23logtrace: add LOG_TRACE_VERBOSE log levelGrissiom
2013-09-23logtrace: cleanup code and fix compiling warningsGrissiom
2013-09-22finsh: unregister rx_indicate when closing the deviceGrissiom
Because the device could still remain opened when closed by finsh, the old rx_indicate is useless for finsh. Some buggy driver will still generate rx_indicate even after the device has been closed. So FinSh should unregister the rx_indicate when releasing the old device.
2013-09-17Merge branch 'master' of https://github.com/RT-Thread/rt-threadbernard
2013-09-17change the compiling macro before DFS optionbernard
2013-09-08Add gettimeofday declaration in sys/time.hBernard Xiong
2013-09-03log_trace: cleanupGrissiom
2013-08-31finsh: use alias in the variable definitionGrissiom
With this patch, one could define two alias for the same function like: FINSH_FUNCTION_EXPORT_ALIAS(rt_hw_cpu_reset, reboot, reboot the cpu); FINSH_FUNCTION_EXPORT_ALIAS(rt_hw_cpu_reset, __cmd_reboot, reboot the cpu); Suitable for being used in MSH/Finsh.
2013-08-22dev/portal: fix bug in portal callback forwardingGrissiom
When forwarding rx/tx callback from the underlaying device(pipe), the "dev" argument should be the portal. So the portal callback could think itself as called.
2013-08-22dev/portal: add checks on oflagGrissiom
It does not make sense to open portal without a flag. One should open a portal with RT_DEVICE_OFLAG_RDWR in most cases.
2013-08-20finsh/cmd: add description for new pipe and portal deviceGrissiom
2013-08-20dev/portal: implement portal deviceGrissiom
Portal is a device that connect devices. Currently, you can only connect pipes in portal. Pipes are unidirectional. But with portal, you can construct a bidirectional device with two pipes.
2013-08-20dev/pipe: make pipe a type of deviceGrissiom
Pipe have many differences with char device. The main difference is altough pipe have both read and write, it is unidirectional in nature.
2013-08-19dev/pipe: cleanupGrissiom
2013-08-19dev/pipe: call rx_indicate the time we resume readerGrissiom
Some reader(FinSh again) would like to block on a semaphore which is released in rx_indicate. So we should invoke rx_indicate in _rt_pipe_resume_reader.
2013-08-19device/pipe: add nonblocking read/write and force write modeGrissiom
The previous implementation will always blocks the reader/writer. However, at least FinSh would expect the device to be nonblocking --- read should return 0 when there is no data in it.
2013-08-19ringbuffer: add put_force and putchar_force APIGrissiom
Add the APIs that will discard the old data when rb is full.
2013-08-19ringbuffer: fix the ambiguous nameGrissiom
RT_RINGBUFFER_SIZE could mean "the size of the whole buffer", "the size of the empty space" or "the size of the data". Moreover, it's never a micro anymore. Change it to rt_ringbuffer_data_len before it's too late. Also, RT_RINGBUFFER_EMPTY is changed to rt_ringbuffer_space_len.
2013-08-19Merge branch 'master' of https://github.com/RT-Thread/rt-threadbernard
2013-08-19Merge branch 'master' of https://github.com/RT-Thread/rt-threadbernard
2013-08-19add shell device automatically setting for rx_indbernard
2013-08-19device/pipe: add rt_pipe_{init,detach}Grissiom
This provide the possibility that allocate the buffer of the ringbuffer on a specific region, instead of always mallocing it. It also bring us the benefit of using pipe device on the systems without heap.
2013-08-12Merge branch 'master' of https://github.com/RT-Thread/rt-threadBernard Xiong
2013-08-12remove compiling warningBernard Xiong
2013-07-29fix O_APPEND write issue in RAMFSbernard
2013-07-29add device_open/close in mkfsbernard
2013-07-29Merge branch 'master' of https://github.com/RT-Thread/rt-threadbernard
2013-07-29Add ramfs into building scriptbernard
2013-07-25Merge pull request #135 from reynoldxu/K60FxxxxBernard Xiong
K60 fxxxx
2013-07-25remove a var for INT_TX.reynoldxu
2013-07-24fix a bug in rt_hw_uart_init() where u CAN NOT init some feature.reynoldxu
2013-07-24add initialization debug codebernard
2013-07-22add mount tablebernard
2013-07-14move commands out of DFSBernard Xiong