Bernard Xiong
065488e746
Merge pull request #3956 from xfwangqiang/gcc-fix
...
[Components]&&[BSP][imxrt]add ethernet configuration for imxrt1064-nxp-evk
2020-11-13 07:10:16 +08:00
z14git
adceb3e2a4
确保char line[]最后一位为'\0'
2020-10-14 09:27:40 +08:00
WangQiang
502378cf93
1. 抽象了PHY的设备模型,在components中增加了PHY设备的相关代码以及KCONFIG配置和SConscript脚本
...
2. 在IMXRT的Libraries中增加了peripherals目录,用于具体型号的设备驱动相关的代码的实现,不应与MCU的平台相关,实现PHY的设备对象中的相关接口。
3. 修改了BSP中的Sconstruct文件,增加了peripherals目录的构建
4. 修改了KEIL环境的SCT文件,用于实现以太网功能
2020-10-12 19:17:00 +08:00
tangyuxin
21a4542d7b
[msh] rm command supports recursive deletion of folders
2020-10-09 11:54:42 +08:00
chenchaoqun
a1ac12c1f1
[update] function must have parameter
2020-07-24 15:20:12 +08:00
David Lin
5bb38bb4e8
Update msh_file.c
2020-06-13 10:13:51 +08:00
David Lin
7129694f38
[finsh]Fixed a bug may cause stackover flow
...
add code:
if (line_buf == RT_NULL) return -RT_ENOMEM;
2020-06-12 08:49:46 +08:00
Bernard Xiong
32714439f0
Merge pull request #3634 from jch12138/master
...
添加static前缀,防止与用户自定函数冲突
2020-05-29 06:47:54 +08:00
jch12138
c0a4da7c5b
添加static前缀,防止与用户自定函数冲突
2020-05-28 20:57:43 +08:00
bigmagic
3afb24f4c1
fix aarch64 compiler warning
2020-04-17 22:35:55 +08:00
jch12138
ebfba4974c
add clear
2020-04-07 20:19:33 +08:00
David Lin
fac95192ea
[finsh]Minor optimization in finsh_compiler.c
...
The code just clean the first member of array 'finsh_vm_stack', but it works well in the past years,
memset(&finsh_vm_stack[0], 0, sizeof(finsh_vm_stack[0]));
Is it better to re-code as below, it will be more readable and robust:
memset(&finsh_vm_stack[0], 0, sizeof(finsh_vm_stack));
2020-02-29 16:53:44 +08:00
Jingsai Lu
cd1ff2ab0d
fix spelling mistake in the comments of shell.c
2019-12-07 13:47:03 +08:00
chenyong
df07cccccc
[components][finsh] fix compile error when the symbol table feature closed
2019-11-11 10:36:49 +08:00
chenyong
2b50d3d32c
[components][finsh] Decouple RT_USING_DEVICE dependency for msh feature
...
Signed-off-by: chenyong <1521761801@qq.com>
2019-09-25 20:14:39 +08:00
Bernard Xiong
4d63839024
Merge pull request #3092 from liu2guang/finsh_update_dev
...
[修复] 修复msh无法配置超过256字节的长度输入 | Fixed MSH unable to configure input leng…
2019-09-21 07:54:54 +08:00
流光
dfd9fa4d9d
[修复] 修复msh无法配置超过256字节的长度输入 | Fixed MSH unable to configure input length exceeding 256 bytes
2019-09-20 14:48:01 +08:00
Bernard Xiong
ae7a33c27c
Merge pull request #3077 from jesven/fix_mempool
...
修正rt_mp_free有可能唤醒一个错误任务指针的问题
2019-09-17 14:11:14 +08:00
shaojinchun
770cc2ffeb
修改mempool使用rt_list_for_each宏进行遍历
2019-09-17 11:02:34 +08:00
shaojinchun
ae1fdc70f0
修正rt_mp_free有可能唤醒一个错误任务指针的问题
2019-09-16 16:55:40 +08:00
armink
c33299ab93
[finsh] Fix the compile error when only using msh mode on x86_64 platform.
2019-07-19 15:44:36 +08:00
tyustli
d8eb0cfc1e
fix kernel and framework no cast type error
2019-06-18 20:09:19 +08:00
tyustli
89b90592ee
add touch framework
2019-06-12 09:38:32 +08:00
loogg
52d1e51e3e
Update shell.c
2019-05-29 20:34:03 +08:00
loogg
b29154673e
Update shell.c
2019-05-29 20:14:53 +08:00
chenyong
3d6e0ea374
[net][netdev]add network interface device components, SAL component adaptation netdev change
2019-04-16 18:24:55 +08:00
ZYH
1030004e78
remove finsh get char error print
2019-04-03 14:43:02 +08:00
misonyo
97c930cd65
[components]add rt_device_ops for adc device and fix finsh_getchar() return wrong value in Big-endian status.
2019-03-23 09:47:45 +08:00
misonyo
14e048aa8e
[components/shell] shell will not work if ch is none zero as random value in stack
...
The serial getchar will only modify the LSB of ch, the MSB 3 bytes
will be unchanged as the random value on stack, so if MSB 3 bytes
not zero, the value got is wrong.
2019-03-13 22:05:03 +08:00
armink
3e4a93cc91
Delete the unused '--keep' link flag when used RT_USED marco.
2019-03-12 11:40:53 +08:00
gbcwbz
860f8d954d
[finsh] change return type of finsh_getchar from ch to int
...
finsh_getchar invokes getchar, who's return type is int, and return value may < 0, which means error occurred or EOF.
finsh should handle that situation properly, and inform user about the error.
2019-03-10 15:50:03 +08:00
guozhanxin
64813b6b07
add first version
2019-02-12 14:09:34 +08:00
Bernard Xiong
c2a85453b3
[finsh] Add RUNNING stat in thread
2019-01-13 14:22:13 +08:00
shaojinchun
fdfc7e541a
修正rt_object_get_information参数类型不匹配警告
2018-12-27 17:48:38 +08:00
shaojinchun
ed9a558da9
list_*时,提供对第一层object的原子保护
2018-12-27 16:31:22 +08:00
shaojinchun
3f79a78393
修正list_thread关中断时间过长的问题
2018-12-26 11:51:35 +08:00
zhaohengbo
afcd8b4521
fix some bug when stack grows upward
2018-12-15 11:20:24 +08:00
shaojinchun
fc6bc1ad39
Add smp support to RT-Thread 4.0
2018-11-22 18:16:47 +08:00
Bernard Xiong
46dae3f35f
Merge branch 'master' into dev-4.0.x
2018-11-20 23:13:45 +08:00
Bernard Xiong
00a655ac1c
[Kernel] Add ARCH_CPU_STACK_GROWS_UPWARD option
2018-11-11 15:56:02 +08:00
chenchaoqun@rt-thread.com
931cdb1f6f
[finsh/shell] compatible definition for cube package
2018-11-07 14:31:32 +08:00
Bernard Xiong
484afe9d2c
[Kernel] Add 64bit CPU support.
2018-10-26 06:35:42 +08:00
Bernard Xiong
9064b28c2a
[license] Change license to Apache.
2018-10-14 19:28:18 +08:00
Bernard Xiong
b98a0ba804
[Kernel] Add ARMCC 6.x support.
2018-09-23 12:08:44 +08:00
Bernard Xiong
ba5c1bea44
[dlmodule] Add cache ops in dlmodule.
2018-09-01 11:00:42 +08:00
Bernard Xiong
07ec7e686d
Merge pull request #1754 from liangyongxiang/rt-used
...
add RT_USED to component init and finsh shell
2018-08-31 18:41:44 +08:00
liang yongxiang
7c0c1c1b4a
[finsh] add RT_USED to macro FINSH_FUNCTION_EXPORT_CMD and FINSH_VAR_EXPORT
2018-08-31 15:02:01 +08:00
Bernard Xiong
efe4523132
[Kernel] move module tolibc/libdl.
2018-08-30 20:27:45 +08:00
Bernard Xiong
b9255c20d2
[finsh] Remove chdir feature in msh
2018-07-26 17:09:39 +08:00
armink
4c92650fde
[components][finsh] Fix shell re-initialization check code to supported C89.
2018-07-17 12:52:02 +08:00
Bernard Xiong
39998e4d89
Merge pull request #1602 from aozima/re_initial_dev
...
add re-initial check.
2018-07-04 07:15:45 +08:00
Bernard Xiong
33fb280140
Merge pull request #1601 from aozima/shell_dev
...
update shell prompt.
2018-07-04 07:15:03 +08:00
Bernard Xiong
eb821ae031
Merge pull request #1598 from heyuanjie87/lwp
...
[msh]执行小程序
2018-07-02 21:03:58 +08:00
aozima
efada8768e
[shell] set prompt mode is default enable.
2018-07-02 19:46:37 +08:00
aozima
4f1112f838
[shell] add finsh_set_prompt().
2018-07-02 16:23:00 +08:00
aozima
85e732ddaf
[shell] add finsh_get/set_prompt_mode.
2018-07-02 15:12:17 +08:00
heyuanjie
409e7fca0a
[msh]执行小程序
2018-07-02 13:47:47 +08:00
aozima
e49a29f2dc
[shell] add re-initial check.
2018-07-02 09:56:12 +08:00
MurphyZhao
6856a8b5e6
[finsh] update netstat
...
Signed-off-by: MurphyZhao <d2014zjt@163.com>
2018-07-02 09:32:52 +08:00
Bernard Xiong
564df04da1
Merge branch 'master' of https://github.com/RT-Thread/rt-thread
2018-06-10 18:01:15 +08:00
Bernard Xiong
682da9b249
[Kernel] Remove object container in module feature.
2018-06-10 17:56:02 +08:00
tangyuxin
6bb00aa88b
[components][finsh]msh最大参数个数可配置
2018-06-07 11:55:54 +08:00
aozima
e5f6996507
[lwip] update netstat: add list_udps.
2018-05-25 22:30:14 +08:00
armink
72ec60aaa3
[components][finsh] Finsh thread using heap when RT_USING_HEAP is defined.
2018-04-23 13:28:44 +08:00
liang yongxiang
cc81b47be2
[components] fixed signed/unsigned mismatch warning
2018-04-09 12:05:51 +08:00
moebius.ever
22bcdd4bdb
[finsh] change comment "Disable the command echo mode or not in default" to "Disable the echo mode in default"
2018-03-23 17:20:17 +08:00
moebius.ever
61946325ee
[finsh] add FINSH_ECHO_DISABLE_DEFAULT and remove FINSH_ECHO_MODE_DEFAULT, to control the finsh default echo mode
2018-03-16 16:26:22 +08:00
moebius.ever
48ecbd3999
[finsh] add FINSH_ECHO_MODE_DEFAULT, to config the default echo mode of finsh
2018-03-15 12:13:40 +08:00
moebius.ever
336c946b84
[finsh] add FINSH_ENABLE_ECHO macro to config the finsh needs echo or not and fix the bsp compile error
2018-03-15 10:50:00 +08:00
moebius.ever
5444c90ecf
[finsh] add FINSH_ENABLE_ECHO macro to config the finsh needs echo or not
2018-03-15 10:12:17 +08:00
armink
76474b3e9d
[Components][Finsh] Fix list object name align issue.
2018-03-13 13:27:37 +08:00
Bernard Xiong
7f1db36f39
[finsh] fix the compiling warning for [-Wmisleading-indentation]
2018-03-04 12:16:52 +08:00
Bernard Xiong
f9a7ba050a
[finsh] convert tab to space and split export API to finsh_api.h
2018-03-01 21:01:20 +08:00
armink
013e5bd411
[Components][Finsh] Add shell getchar received error process.
2018-02-23 15:24:27 +08:00
liu2guang
a672a9e52a
[Finsh] 修复menuconfig中finsh历史命令无法关闭错误, 并将finsh未导出配置导出menuconfig.
2018-01-16 21:45:20 +08:00
armink
cfd82c260d
[Finsh] Add finsh thread name macro.
2018-01-12 17:22:14 +08:00
bernard
872975b0ab
[DFS] add df cmd in msh and provide better display.
...
re-write for #1138
2017-12-31 10:46:24 +08:00
Bernard Xiong
a3d96ed555
Use rt_object_get_information to get object chain
2017-12-12 07:38:02 +08:00
Bernard Xiong
7bc87e4ae8
[Kconfig] Rename all of KConfig files to 'Kconfig'
2017-11-30 20:12:53 +08:00
armink
82b7ecda06
[Finsh] Fix an auto complete history bug when current line is contained in last cmd.
2017-11-01 10:25:17 +08:00
armink
d3ac388846
[rtservice] Add `rt_list_len` and `rt_slist_len` to rtservice.h .
2017-10-19 09:28:17 +08:00
bernard
d118852314
[finsh] code cleanup and use RT_USING_POSIX to replace RT_USING_POSIX_STDIN.
2017-10-17 22:28:05 +08:00
bernard
8a38307e2c
[libc] Add RT_USING_POSIX macro.
...
1. Add macro check in rtdebug.h;
2. Use RT_USING_POSIX for poll/select, stdin etc.
3. Split dfs_posix.h to dfs_posix.h, dfs_poll.h and dfs_select.h;
2017-10-17 22:27:06 +08:00
bernard
3c0fbf0c7e
[finsh] Fix the C99 issue.
2017-10-17 09:45:17 +08:00
bernard
444915d1ea
[finsh] Add RT_USING_POSIX_STDIN options.
2017-10-13 11:50:18 +08:00
armink
c123451585
[Finsh] Stop push new history when current cmd is same as last cmd.
2017-10-13 10:21:40 +08:00
bernard
95ab8c02aa
[finsh] Use standard uint type for data type.
...
Use uint8_t/uint32_t etc to replace u_char/u_long etc;
Use getchar for shell input.
2017-10-10 14:27:34 +08:00
armink
c36a628ff4
[Finsh] Fix finsh password auth not valid when RT_DEBUG is not definition.
2017-08-30 20:42:36 +08:00
Aubr.Cool
e4fea38726
[Components] correct msh argc too many error
2017-07-19 15:34:15 +08:00
bernard
6515dc238c
[finsh] Add checking the result of chdir.
2017-06-15 14:37:56 +08:00
bernard
c53389e46f
[finsh] Add lwip 2.0.0 support.
2017-01-31 13:17:34 +08:00
bernard
d692001fd5
[tools] Add KConfig files.
2017-01-31 11:54:12 +08:00
armink
72e4efb46e
[finsh]Improve the set password.
2016-11-26 16:45:54 +08:00
armink
8ff7529039
[finsh] Add password authentication. Increased input security.
2016-11-26 15:23:12 +08:00
gbcwbz
5941d73604
Convert tab into spaces
2016-09-07 23:45:39 +08:00
gbcwbz
517e909c3d
[finsh]Align title and content in list_* cmd
2016-09-07 23:24:12 +08:00
Bernard Xiong
108ba3b371
[finsh] change display format for list_thread.
2016-07-13 09:37:51 +08:00
Bernard Xiong
45c7f03035
[finsh] Fix object name issue in list_* cmd.
2016-06-13 13:29:18 +08:00
Bernard Xiong
4d93c31cce
Revert "[finsh] Beautify all list object information command."
...
This reverts commit cd3b0cfff5
.
2016-06-13 11:08:23 +08:00
armink
cd3b0cfff5
[finsh] Beautify all list object information command.
2016-06-04 11:03:30 +08:00
armink
cbbe5a6edd
[finsh] Beautify the list_thread command.
2016-06-02 17:06:41 +08:00
armink
1bd8d0f75e
[finsh] Beautify the list_thread command.
2016-06-02 14:29:44 +08:00
Bernard Xiong
838141e89f
[finsh] Add echo command for msh.
2016-04-18 13:53:32 +08:00
Bernard Xiong
f0fc48922b
[finsh] use the macro definition instead of the const number in the code
2016-03-01 10:56:46 +08:00
hezlog
a1745986e9
Update finsh_token.c
...
修正finsh不能正确处理"\""和"\x1A"转义;
2016-01-19 12:16:30 +08:00
Bernard Xiong
d2aee25391
Merge pull request #593 from SchumyHao/master
...
finsh: change no echo mode. cpp: remove RT_USE_LIBC depends
2015-12-02 23:28:05 +08:00
SchumyHao
f1e92c63f2
finsh: check echo_mode before print '\n' when excute msh command
...
Signed-off-by: SchumyHao <bob-hjl@126.com>
2015-11-13 00:56:50 +08:00
www220@tom.com
86f1d4f19b
msh中增加了dns的配置函数
2015-11-04 09:37:38 +08:00
www220@tom.com
c7af45b759
msh中的mkfs命令再携带类型是,解析出错
2015-10-12 15:55:52 +08:00
Bernard Xiong
c2b5cd1e85
[Finsh] fix the '\r' issue in linux telnet.
2015-10-12 10:52:14 +08:00
Bernard Xiong
f4248a95c3
[Finsh] Add script feature for msh.
2015-10-11 15:38:08 +08:00
Bernard Xiong
3dc91bf8ab
[finsh] Code cleanup.
2015-09-24 20:58:40 +08:00
Bernard Xiong
353f511cb0
[finsh] fix the '\0' issue when use shell in linux telnet
2015-09-24 03:06:26 +00:00
Bernard Xiong
7dfac0f78e
rename .name section to .rodata.name section
2015-09-15 12:11:07 +00:00
heyuanjie87
8f9bda579a
定义Timer设备类
2015-09-06 15:18:15 +08:00
heyuanjie87
c84887d021
加入定时器设备
2015-09-02 22:00:24 +08:00
Bernard Xiong
cb51bdb245
[finsh] fix compiling warning.
2015-09-02 14:05:38 +08:00
Bernard Xiong
1079727afb
[finsh] Add .name section for exported cmd and variables.
2015-09-02 12:07:58 +08:00
Bernard Xiong
340a013f53
[finsh] export system symbol
2015-09-02 11:24:41 +08:00
Bernard Xiong
bcb9ab1317
[finsh] Add mkfs command to msh
2015-08-28 15:13:04 +08:00
ardafu
667c03db97
[FINSH] Add macro MSH_CMD_EXPORT_ALIAS
2015-07-31 11:07:54 +08:00
ardafu
084a8dcd0c
[finsh] Clear buffer before switching to new shell device
2015-05-22 16:35:01 +08:00
Bernard Xiong
8de629c0b0
[shell] Add FINSH_CMD_SIZE option.
2015-05-18 18:12:17 +08:00
Bernard Xiong
450acd3454
Revert "Add FINSH_CMD_SIZE option."
...
This reverts commit 326a7d7496
.
2015-05-18 18:08:49 +08:00
Bernard Xiong
326a7d7496
Add FINSH_CMD_SIZE option.
2015-05-18 18:08:24 +08:00
Bernard Xiong
37aa44d4f2
Fix compiling warning.
2015-04-24 11:48:25 +08:00
Grissiom
54f8b19e12
SConscript: fix the `--keep` parameter for Keil
...
The old `--keep` parameter for Keil is wrong. RTFM of Keil and get it
right.
2015-04-14 18:22:46 +08:00
bernard
5b1270455d
Fix the echo issue in the shell.
2015-03-20 12:44:58 +08:00
bernard
924264b277
Remove list_mod_detail command from msh.
2015-03-20 12:44:02 +08:00
Grissiom
099ada6699
finsh: open the finsh device with RT_DEVICE_FLAG_STREAM
2015-01-04 19:42:58 +08:00
Grissiom
cf692a4ab4
msh: use list_memheap when RT_USING_MEMHEAP_AS_HEAP is enabled
...
There is no list_mem and only list_memheap when RT_USING_MEMHEAP_AS_HEAP
is enabled.
2014-12-01 18:54:14 +08:00
limxuzheng
4fea46c83c
support rx62n
2014-11-12 01:09:43 +08:00
Grissiom
3d584266e5
finsh: allow user to disable the FINSH_USING_HISTORY
2014-10-21 16:01:08 +08:00
Grissiom
4c39f8765a
msh: free is only available when HEAP is enabled
2014-10-14 16:07:49 +08:00
Grissiom
23cc390474
msh: check path is non-null in msh_auto_complete_path
2014-10-14 16:07:19 +08:00
bernard
3b5c2e2f9f
Merge branch 'master' of https://github.com/RT-Thread/rt-thread
2014-09-11 12:55:18 +08:00
bernard
a8b0fe3f36
[shell] Fix compiling issue when DFS is not enable
2014-09-11 12:47:25 +08:00
weety
12136cfeb1
[finsh] fixed finsh issue.
2014-08-26 23:36:16 +08:00
bernard
02faf9edb8
[Finsh] fix device_open issue when set_device in finsh.
2014-07-20 13:57:49 +08:00
bernard
c45f5a2490
[Drivers] re-write serial framework.
2014-07-18 06:45:54 +08:00
bernard
f44f6caadb
[Finsh] Fix command line size issue in finsh.
2014-07-10 13:35:28 +08:00
bernard
dcd7974794
[Finsh] Enhance mv command.
2014-06-25 17:23:28 +08:00
Grissiom
aca8f8eb2d
shell: print the ref count in `list_device`
2014-06-18 11:18:43 +08:00
Bernard Xiong
cde9139bc5
[Finsh] Fix '0' token issue.
2014-05-05 13:51:26 +08:00
Grissiom
a95370aa56
msh: remove usless ptr set
...
The ptr is set in the following code. So remove the first one.
2014-04-12 16:57:14 +08:00
Grissiom
ec4b865579
finsh: add check on converting octal numbers
...
The digit in octal numbers should with in 0~7. Check on it in
token_proc_number. This issue is found by Clang.
2014-04-12 16:55:00 +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
bernard
8bd3e6f6dc
[Kernel] Change command line to const parameter and add system() function.
2014-04-02 14:05:15 +08:00