4
0
mirror of https://github.com/RT-Thread/rt-thread.git synced 2025-01-16 03:39:22 +08:00

1054 Commits

Author SHA1 Message Date
Grissiom
1422569e7c pthreads: remove some useless variables 2014-04-12 16:54:20 +08:00
Grissiom
4b7e9c6447 dfs: assert the path is not null in dfs_filesystem_lookup
Clang complains about "Null pointer argument in call to string
comparison function". So assert on it.
2014-04-12 16:35:07 +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
Bernard Xiong
abcef00c8e Merge pull request #254 from weety/Branch_usb
[USB]fix rt_usbd_set_config() BUG which set the USB device to configurat...
2014-04-10 16:34:32 +08:00
aozima
f61773305a MSH: add cmd netstat. 2014-04-09 13:17:21 +08:00
aozima
4fada1a13a MSH: perfect cmd ifconfig. 2014-04-09 13:16:55 +08:00
Grissiom
841898abe2 [shell] define FINSH_PROMPT as finsh_get_prompt when FINSH_USING_MSH enabled
When MSH enabled, the prompt will change at the two shells. So we should
use dynamic prompt when FINSH_USING_MSH defined.
2014-04-08 15:12:44 +08:00
weety
d5b0c94552 [USB]fix rt_usbd_set_config() BUG which set the USB device to configuration state before enumerating the device. 2014-04-06 21:02:23 +08:00
Grissiom
28f11fdd7b [vmm] add realview-pb-a8 VMM support 2014-04-03 17:59:14 +08:00
bernard
8bd3e6f6dc [Kernel] Change command line to const parameter and add system() function. 2014-04-02 14:05:15 +08:00
bernard
6469a5a3d1 [DFS] fix compiling warning. 2014-04-02 14:02:36 +08:00
Bernard Xiong
a82ad3e380 Merge pull request #250 from grissiom/msh-next
[msh] don't complain on empty command
2014-03-29 14:50:04 +08:00
Grissiom
0979328fb1 [msh] don't complain on empty command
Just branch out and no complain on command length == 0;
2014-03-29 11:33:20 +08:00
bernard
7d2b7199d8 Add PNG_ABORT for libpng; Add format field in tjpgd; 2014-03-29 08:45:26 +08:00
Grissiom
c44f32e513 [msh] cd to path when possible
When DFS_USING_WORKDIR is enabled, msh will try to chdir if the command
is not found. For example, if there is folder named "SD", and there is
no `SD` command and `SD.mo` module, typing "SD" in msh will cd to the
folder.

In more detail, the execution order right now is:

1. built-in command
2. module
3. cd to path

If you have a folder named "ps", you have to run `cd ps` to change the
working dir.
2014-03-27 16:41:26 +08:00
Grissiom
f9659283c0 [msh] try to complete module path
Msh can execute module directly. So try to auto-complete the path when
user press TAB. There is a chance that the path is a module.
2014-03-27 15:09:53 +08:00
bernard
04b5a46179 [Finsh] fix the shell prompt issue. 2014-03-12 16:25:59 +08:00
bernard
444b928d22 Add more command to msh for module. 2014-03-12 08:47:10 +08:00
bernard
09bb7393b2 [Pthreads] fix compiling warning 2014-03-11 16:05:14 +08:00
bernard
33a5abbbf8 [Finsh] Use msh as prompt when current mode is msh mode. 2014-03-11 15:54:21 +08:00
bernard
6cab3b7dfa [DFS] fix compiling warning in NFS 2014-03-10 11:48:47 +08:00
Bernard Xiong
d0d239cd4c [DFS] fix compiling warning for NFS file system 2014-03-10 11:21:50 +08:00
bernard
306e1ac43f [DeviceDrivers] Add watchdog driver frame work 2014-03-04 14:32:56 +08:00
shaolin
020e95d91b Merge branch 'master' of https://github.com/RT-Thread/rt-thread 2014-03-04 09:14:48 +08:00
shaolin
0fb9c54efd 1.replace API prefix usb* with usbh* in USB host stack to distinct with USB device stack;
2.adjust some viable and micro name
3.some other small fix
2014-03-04 08:59:53 +08:00
Grissiom
f615c1e92d Revert "Merge pull request #241 from bright-pan/master"
This reverts commit 5aeedc4f3a3c3fcfffb0cd4a474f5faa75053839, reversing
changes made to 3d80e414ff6c03ff04fecb914e7aa9b3fb535e03.

This merge breaks every uart driver in all BSPs. @bright-pan , is there
any way to get this done without breaking existing code?
2014-03-03 12:07:13 +08:00
Bright Pan
9ab853aca3 Fix rt_serial_control() bug for customized command and indent the code 2014-02-28 18:22:50 +08:00
Bright Pan
10c4b6263f Use DeviceDriver ringbuffer.
Add hardware flow support.
Use new struct serial_ringbuffer.
2014-02-26 11:06:14 +08:00
Bernard Xiong
3d80e414ff [JS] fix the include path issue 2014-02-25 13:43:59 +08:00
Bernard Xiong
213f47e380 Update SConscript 2014-02-25 09:29:09 +08:00
geniusgogo
121bb5fcdf add JavaScript Interpreter 2014-02-25 01:47:49 +08:00
bernard
7255137b0a [DFS] Add ramfs initialization in components initialization procedure 2014-02-23 00:10:09 +08:00
Bernard Xiong
0468f0c87e Add INIT_FS_EXPORT for RAM file system 2014-02-20 22:06:59 +08:00
shaolin
8fd0a7f9c6 Update USB Device Stack to support more device controllers;
Pass USB CV test verification;
Code cleanup;
2014-02-16 17:42:35 +08:00
bernard
32a6f5b730 [Finsh] remove the .mo display when command is not found. 2014-02-15 10:28:38 +08:00
prife
f015f36d05 dfs: support copy directory 2014-02-09 15:27:52 +08:00
Bernard Xiong
be2ff57198 Add directory and SConscript for Espruino. 2014-02-06 15:50:33 +08:00
bernard
8778e39c9f [Finsh] Add ifconfig command implementation. 2014-02-01 21:35:46 +08:00
bernard
201d11bb2f [DFS] Fix file size issue
This issue causes fstat & lseek not correct.
2014-02-01 21:35:23 +08:00
bernard
5a6ec7dcae [DFS] fix the wrong field comparison in FAT mount. 2014-01-26 22:43:12 +08:00
Bernard Xiong
ba444f29f6 Merge pull request #235 from aozima/pulls
update CMSIS version to 3.20
2014-01-26 05:52:21 -08:00
bernard
e601c2a6ed Add sector size check when mounting a FAT file system. 2014-01-26 20:30:37 +08:00
aozima
9367bba6d1 update CMSIS version to 3.20 2014-01-22 17:26:52 +08:00
bernard
ae891e2011 [Finsh] fix strncmp issue in command search 2014-01-16 22:22:23 +08:00
roamboy
1c8693c87e Update msh.c 2014-01-13 15:57:13 +08:00
roamboy
1df4c1b962 Update msh.c 2014-01-13 15:56:20 +08:00
roamboy
849130da2c Update msh.c
fix msh_exec(char* cmd, rt_size_t length) bug
2014-01-13 15:52:23 +08:00
bernard
2188d06003 [DFS] remove a compiling warning 2014-01-11 16:34:15 +08:00
bernard
31446eab4c [Kernel] application module can support arguments 2014-01-11 16:33:31 +08:00