bernard
3142811644
[lwIP] Add more RT-Thread options into lwIP
2014-01-04 07:55:25 +08:00
bernard
7fd45f3d44
[DFS] remove the unnecessary code
2014-01-04 06:05:03 +08:00
bernard
6a624356e4
[Finsh] code cleanup
2014-01-04 06:02:33 +08:00
bernard
1f8a0668d2
[Finsh] Add features to execute module.
2014-01-03 08:01:24 +08:00
bernard
8a56e181bd
[Finsh] cleanup the code style
2014-01-03 07:15:25 +08:00
bernard
b924104129
Add FINSH_USING_MSH_ONLY option
2014-01-01 23:14:45 +08:00
bernard
9993c9e60c
Merge branch 'master' of https://github.com/RT-Thread/rt-thread
2014-01-01 21:46:14 +08:00
bernard
a5ba2a24f7
add file and path name auto completion for module shell
2014-01-01 21:45:09 +08:00
Bernard Xiong
ec7fada97e
[Drivers] Fix the block start issue in MTD Nand operators
2013-12-30 18:14:09 +08:00
bernard
a93251ae2b
Merge branch 'master' of https://github.com/RT-Thread/rt-thread
2013-12-29 22:31:05 +08:00
bernard
42ae1c634d
[Drivers] Add more debug utilities in MTD nand
2013-12-29 22:27:33 +08:00
Bernard Xiong
041a7e887b
Update posix_types.h
2013-12-23 13:23:49 +08:00
geniusgogo
4c463f27cb
Merge branch 'master' into SQLite_on_ARMCC
2013-12-22 21:31:12 +08:00
geniusgogo
8b1b64567a
Merge branch 'master' of https://github.com/RT-Thread/rt-thread
2013-12-22 21:28:30 +08:00
geniusgogo
7442414a74
ARMCC complier is usable.
2013-12-22 21:26:21 +08:00
geniusgogo
26e0137f15
Moved the configuration options to the SRC directory
2013-12-22 21:22:47 +08:00
geniusgogo
30d6196c22
Moved the configuration options to the SRC directory
2013-12-22 21:11:58 +08:00
prife
95006bb503
Merge pull request #215 from prife/master
...
fix dfs_unmount bug
2013-12-21 04:06:25 -08:00
Grissiom
1289dff203
DFS: let mount fail on device open error
2013-12-21 12:15:31 +08:00
prife
26a31d662d
dfs: make elmfatfs check secter size everytime
...
more infomation:
http://www.rt-thread.org/phpBB3/topic2965.html
2013-12-21 12:04:19 +08:00
prife
4f9dc273ec
dfs: fix dfs_unmount bug
...
fix #211
2013-12-21 11:35:09 +08:00
prife
27112267e9
dfs: rename varialbe name in dfs_filesystem_lookup
...
empty is confused in dfs_filesystem_lookup.
2013-12-21 10:58:52 +08:00
prife
f4e8820bca
dfs: refine more code
...
clean code with pointer rather than index
2013-12-19 13:58:30 +08:00
prife
7fd6d17d5b
dfs: refine code
...
decrease indentation to make cleaner code
fix mkfs bug when there is no mkfs implementation
2013-12-19 00:31:39 +08:00
geniusgogo
9326719a12
move SQLiteLib/SConscript file to SQLite-3.8.1/SConscript
2013-11-30 15:00:24 +08:00
geniusgogo
06d3cf710e
rename sqlite directory to SQLite-3.8.1/SQLiteLib
2013-11-30 15:00:23 +08:00
geniusgogo
b3e70cbf40
modify the RTT is abbreviated error, change to be rtthread.
2013-11-30 15:00:21 +08:00
geniusgogo
6433eeae66
build env component removal
2013-11-30 15:00:20 +08:00
geniusgogo
dd2a4cd49c
port rtt config orig env
2013-11-30 15:00:19 +08:00
geniusgogo
ab1429b044
orig config result tool
2013-11-30 15:00:18 +08:00
geniusgogo
2948bf55f7
fix the SQLite mutex free-fun cause a memory leak
2013-11-30 15:00:17 +08:00
geniusgogo
d246db603c
fix sqlite mutex/vfs/
2013-11-30 15:00:16 +08:00
geniusgogo
10aad53661
fix declarative referential integrity
2013-11-30 15:00:07 +08:00
geniusgogo
7e7f0fb5f5
add test/test10.c
2013-11-30 15:00:06 +08:00
geniusgogo
7d88b753d6
complete SQLite-3.8.1 porting, and auto generate porting code
2013-11-30 14:59:57 +08:00
geniusgogo
2315160531
add vfs/fs porting
2013-11-30 14:59:56 +08:00
geniusgogo
d47febdc65
port complete SQLite-3.8.1 to RT-Thread
2013-11-30 14:59:55 +08:00
geniusgogo
993374d860
add rtt memory management support
2013-11-30 14:59:54 +08:00
geniusgogo
bb71850863
add rtt mutex support
2013-11-30 14:59:53 +08:00
geniusgogo
e0a3ced7ea
add rtt complie macro SQLITE_OS_RTT
2013-11-30 14:59:52 +08:00
geniusgogo
a186d329a4
add SQLite-3.8.1 authority original source tree
2013-11-30 14:59:51 +08:00
geniusgogo
0347f8ab9c
add SQLite 3.8.1 amalgamation source code
2013-11-30 14:59:48 +08:00
aozima
e037d2e5f6
fixed _sys_read()/_sys_write() issues.
2013-11-24 23:11:17 +08:00
prife
b79b9be19f
finsh: fix finsh device setting
...
1. rt_console_get_device should be call to set shell device only when it is null, or it will make finsh_set_device useless.
2. RT_USING_CONSOLE can be disabled in bsp/rtconfig.h
2013-11-18 21:17:49 +08:00
Grissiom
61ffa2c438
freemodbus: fix eol
...
On Windows platform, please set `autocrlf = true` and on Linux, please
set `autocrlf = input`.
2013-11-06 21:47:49 +08:00
armink
615579ccf1
add SConscript for freemodbus
...
Signed-off-by: armink <armink.ztl@gmail.com>
2013-11-06 14:16:24 +08:00
armink
b280a940c4
add modbus master to freemodbus
...
Signed-off-by: armink <armink.ztl@gmail.com>
2013-11-06 09:34:24 +08:00
Grissiom
6bb2c0f2ea
Revert "serial: set the errno if and only if in thread context"
...
This reverts commit 07bd09fc0f
.
The validation of the context is done with in `rt_set_errno`. So it's
safe to call it here.
2013-10-25 21:23:15 +08:00
Grissiom
07bd09fc0f
serial: set the errno if and only if in thread context
...
The errno is associated with threads. It will crash the thread if we set
it in interrupt context.
2013-10-25 20:31:02 +08:00
Grissiom
21fb9a0bac
serial: do onthing if the size of read/write is zero
...
Return early if the size is 0 as there is nothing to do.
2013-10-25 20:15:08 +08:00
Grissiom
0feefc03b6
device/pipe: add a control cmd to get the space left in pipe
2013-10-23 01:43:18 +08:00
Bernard Xiong
a0ffbc1fb8
Merge pull request #179 from grissiom/finsh-ex
...
Finsh ex
2013-10-18 17:06:36 -07:00
Grissiom
1e01252824
finsh: refactor the control key handling
...
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-18 22:36:51 +08:00
Bernard Xiong
8d5dfec3b7
Merge pull request #162 from joyhope/master
...
UART DMA tx_complete() with buffer information
2013-10-17 15:40:50 -07:00
prife
3a33906ab1
simulator/jffs2: remove _TIME_T_DEFINED when built by VC++
...
_TIME_T_DEFINED was pre-defined in order to build jffs2 with VC.
While it may cause many side effects.
2013-10-17 23:47:08 +08:00
Bernard Xiong
4eaadb7a98
Merge pull request #168 from grissiom/dfs-fix
...
DFS: add dfs_file_flush prototype in dfs_file.h
2013-10-11 07:40:50 -07: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
5fdca8371b
DFS: add dfs_file_flush prototype in dfs_file.h
2013-10-11 14:55:23 +08:00
Bernard Xiong
69bbd35f38
Merge pull request #167 from grissiom/ymodem
...
components/utilities: add ymodem
2013-10-09 08:33:02 -07: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
bernard
1ffb99e6f5
Merge branch 'master' of https://github.com/RT-Thread/rt-thread
2013-10-10 00:22:59 +09:00
bernard
6c5e34fa70
fix the line too long issue
2013-10-09 18:06:40 +09:00
prife
f71f0595d6
DFS/jffs2: fix bug when umount jffs2
...
found by haitao5198
clear mount parition device talbe when jffs2 mount falied
2013-09-28 14:57:05 +08:00
prife
12a6366217
DFS/jffs2: fix file mode init bug in jffs2_open/opendir
...
found by haitao52198
URL:http://www.rt-thread.org/phpBB3/viewtopic.php?f=3&t=3112&p=17153#p17153
2013-09-28 14:43:00 +08:00
Grissiom
df4e8ff060
msh: only export cd/pwd when DFS_USING_WORKDIR is set
2013-09-26 11:50:28 +08:00
Grissiom
05651e7c66
logtrace: only export cmd when finsh is enabled
2013-09-26 11:49:33 +08:00
joyhope
281e55e973
notification function: rt_err_t (*tx_complete)(rt_device_t dev, void
...
*buffer) with buffer pointer
2013-09-24 20:57:00 +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
Grissiom
6d2df9bf94
finsh: unregister rx_indicate when closing the device
...
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-22 22:12:04 +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
Bernard Xiong
2bcb9edd91
Add gettimeofday declaration in sys/time.h
2013-09-08 15:01:29 +08:00
Grissiom
ea66b820e1
log_trace: cleanup
2013-09-03 16:09:16 +08:00
Grissiom
c05b205390
finsh: use alias in the variable definition
...
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-31 17:58:34 +08:00
Grissiom
246bdde8de
dev/portal: fix bug in portal callback forwarding
...
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-22 16:43:06 +08:00
Grissiom
824261d3bc
dev/portal: add checks on oflag
...
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-22 15:12:00 +08:00
Grissiom
b4ab82284f
finsh/cmd: add description for new pipe and portal device
2013-08-20 14:27:28 +08:00
Grissiom
6e676e7754
dev/portal: implement portal device
...
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-20 12:54:43 +08:00
Grissiom
7e68096a88
dev/pipe: make pipe a type of device
...
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-20 10:16:55 +08:00
Grissiom
0340300f89
dev/pipe: cleanup
2013-08-19 16:25:17 +08:00
Grissiom
e8cca2315a
dev/pipe: call rx_indicate the time we resume reader
...
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-19 15:57:59 +08:00
Grissiom
d683d32bd5
device/pipe: add nonblocking read/write and force write mode
...
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-19 15:35:56 +08:00
Grissiom
4919d29d69
ringbuffer: add put_force and putchar_force API
...
Add the APIs that will discard the old data when rb is full.
2013-08-19 15:32:42 +08:00
Grissiom
981d929b56
ringbuffer: fix the ambiguous name
...
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-19 14:12:35 +08:00
bernard
6f75988cee
Merge branch 'master' of https://github.com/RT-Thread/rt-thread
2013-08-19 13:00:48 +08:00
bernard
d8695085dc
Merge branch 'master' of https://github.com/RT-Thread/rt-thread
2013-08-19 12:47:40 +08:00
bernard
fa934fa7bd
add shell device automatically setting for rx_ind
2013-08-19 12:46:04 +08:00
Grissiom
38ce3879d8
device/pipe: add rt_pipe_{init,detach}
...
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-19 12:28:59 +08:00
Bernard Xiong
0826efaab3
Merge branch 'master' of https://github.com/RT-Thread/rt-thread
2013-08-12 07:22:04 -07:00
Bernard Xiong
05b9eb0b82
remove compiling warning
2013-08-12 07:21:29 -07:00
bernard
ac10730492
fix O_APPEND write issue in RAMFS
2013-07-29 14:50:12 +08:00
bernard
ac850ef3f0
add device_open/close in mkfs
2013-07-29 14:43:52 +08:00
bernard
914244f368
Merge branch 'master' of https://github.com/RT-Thread/rt-thread
2013-07-29 13:53:38 +08:00
bernard
d74dee0dd6
Add ramfs into building script
2013-07-29 13:52:59 +08:00
Bernard Xiong
a431a25699
Merge pull request #135 from reynoldxu/K60Fxxxx
...
K60 fxxxx
2013-07-25 03:55:52 -07:00
reynoldxu
10c75c3dc6
remove a var for INT_TX.
2013-07-25 10:18:33 +08:00
reynoldxu
8f0fffc132
fix a bug in rt_hw_uart_init() where u CAN NOT init some feature.
2013-07-24 18:34:07 +08:00
bernard
a124e7bd22
add initialization debug code
2013-07-24 07:33:48 +08:00