Commit Graph

336 Commits

Author SHA1 Message Date
armink fc72bd1f9b [shell] update the code format 2021-11-25 15:33:50 +08:00
armink 31714562cc [shell] update the list_timer cmd. 2021-11-25 15:30:36 +08:00
Meco Man bd80b7a4a1 对finsh_set_device调用增加宏定义限制 2021-11-24 08:57:12 -05:00
Meco Man a3284876ff revise RT_USING_POSIX_STDIO to RT_USING_POSIX_DEVIO 2021-11-24 08:41:10 -05:00
Meco Man 973f25901c [dfs] move dfs back 2021-11-16 00:57:56 -05:00
Meco Man f8388c572e add RT_USING_POSIX_STDIO 2021-11-07 23:41:16 -05:00
guo 372858f921
[finsh] Fix formatting issues 2021-10-27 17:39:22 +08:00
Meco Man 25bd908fb7 [libc][posix] 解决RT_LIBC_USING_FILEIO范围过大的问题 2021-10-27 03:04:05 -04:00
Meco Man a9910a780e [posix][libc] 优化libc中posix结构 2021-10-26 23:09:54 -04:00
Meco Man f7548b934e [posix][dfs] move dfs_posix dfs_poll dfs_select.c to posix folder 2021-10-21 19:05:53 -04:00
Meco Man 9fce0e5659 [shell] improve finsh_getchar 2021-10-13 22:38:01 -04:00
liukangcc c99dfc3147 [update] fix finsh_getchar() 未对 shell->device 为空处理的问题 2021-10-14 09:43:46 +08:00
Meco Man c80688126a [libc] 优化system 支持gcc 2021-09-27 22:20:21 -04:00
Bernard Xiong 5595df0b8b
Merge pull request #5016 from mysterywolf/finsh
[msh] add comments
2021-09-07 20:25:26 +08:00
Meco Man e4a404c3ef [msh] add comments 2021-09-07 08:11:51 -04:00
Meco Man 099dc437ea [finsh] 恢复FINSH_USING_MSH定义以保持兼容性 2021-09-05 14:03:33 -04:00
Meco Man 1997113fbc FINSH_USING_BUILT_IN_COMMANDS改MSH_USING_BUILT_IN_COMMANDS 2021-08-28 16:48:08 -04:00
Meco Man 3d5582380d [finsh] 整理Kconfig 层次更分明 2021-08-26 10:08:12 -04:00
Meco Man 29828dc94f [finsh] finsh组件可以选择是否包含内置命令 2021-08-25 19:48:15 -04:00
马志远 782c288db6 Repair that the tab key on msh do not work. 2021-08-25 09:31:35 +08:00
马志远 8a1e6c01ac Disable FINSH_FUNCTION_EXPORT 2021-08-23 18:37:58 +08:00
马志远 221da7f464 Remove C Style Command Shell 2021-08-23 17:30:05 +08:00
Meco Man 60aaa9f9d8 [finsh] 将finsh_getchar函数暴露出来 2021-08-21 00:30:04 -04:00
Man, Jianting (Meco) 3e6578916f
Merge branch 'master' into security 2021-08-17 16:56:10 -05:00
Meco Man 9479183e12 [kernel][device] 修复PR #4941 导致的编译警告 2021-08-17 06:51:27 -04:00
fenghuijie c77ddf442a list-thread命令针对多核添加bind core显示 2021-07-03 16:35:33 +08:00
Meco Man 921e606426 将defined(__CC_ARM) || defined(__CLANG_ARM) 改为 ifdef __ARMCC_VERSION 2021-06-13 17:36:42 +08:00
guo b516cbd2ae
Merge pull request #4790 from mysterywolf/errno
[master][rtlibc] remove libc_errno.h & libc_limits.h
2021-06-13 09:36:29 +08:00
Meco Man 740a810274 [errno][libc] 解决sys头文件在libc未开启时的引入问题 2021-06-12 18:11:51 +08:00
Meco Man 7fd22c9546 [msh]implement tail command 2021-06-09 16:45:40 +08:00
geniusgogo 6c01083502 fix shell msh_exec memory over-bound. 2021-05-22 19:52:50 +08:00
Meco Jianting Man 7ab3b4dedc
移除cmd.c首行空白行 2021-05-21 10:09:26 +08:00
crazt 86f12ac118 [components][finsh] add support for tasking toolchain 2021-03-26 17:39:40 +08:00
Meco Man 37a9231e62 [kernel][devices] add security devices 2021-03-19 13:26:12 +08:00
Meco Man 3c05a4e719 [compoenets] auto & manual formatted 2021-03-08 18:19:04 +08:00
Bernard Xiong 729a1ad3b4
Merge pull request #4280 from enkiller/0130-1631
[finsh] add mount/umount cmd
2021-03-05 08:17:28 +08:00
tangyuxin 991c25dd5d [finsh] add mount/umount cmd 2021-03-03 21:29:46 +08:00
liruncong 0208fc5546 [components]SECTION=>RT_SECTION(与catch2中SECTION冲突) 2021-02-09 23:25:46 +08:00
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