Commit Graph

111 Commits

Author SHA1 Message Date
liuchao bdf5a1fb09 [components][finsh]在RT_USING_POSIX_STDIO时,使用get_console获取当前console描述符 2024-11-04 22:02:59 -05:00
Meco Man e0f2313c53 [msh] solve data access bugs and fix shell.c strcat()
When using musl libc's strcat, strcat itself will cause system crash.
2024-03-27 18:40:56 -04:00
Shell 22106bb8de [finsh] feat: add finsh thread entry hook
Signed-off-by: Shell <smokewood@qq.com>
2024-03-22 18:52:35 -04:00
Meco Man 6cc63626d7 fix some -Wmissing-prototypes warnings 2024-01-02 21:25:26 +08:00
wangqinglin 2d630e38d7
【msh】新增msh自动补全子选项特性 (#8086) 2023-09-27 12:34:05 +08:00
褚仕成 634ac13c12 Fix the comment in finsh_set_prompt_mode 2023-01-20 23:44:38 -05:00
Man, Jianting (Meco) 99bdf978d7
[rtdef] use lower-case to define attributes (#6728)
* [rtdef] rename RT_WEAK attribute as rt_weak

* [rtdef] rename RT_USED attribute as rt_used

* [rtdef] rename RT_SECTION attribute as rt_section

* [rtdef] rename ALIGN attribute as rt_align

* [legacy] add RT_USED ALIGN RT_SECTION RT_WEAK as legacy support
2022-12-11 13:12:03 -05:00
Meco Man 584d06bd27 [finsh]修复使用finsh_set_prompt重定向了msh提示符的名称后,路径功能没有的问题 2022-07-01 11:38:31 +08:00
Meco Man 08737c2a26 [simulator] 消除windows下的警告 2022-05-19 09:43:20 +08:00
thewon86 f5b0bfd3f4 uniform code writing-disable interrupt 2022-04-20 14:22:43 +08:00
LiuKang aa80ba25d4
[update] fix finsh bug (#5676)
* [update] fix finsh bug

* [update] format code
2022-03-15 16:56:59 +08:00
Meco Man 8213bbd92e update 2022-01-14 23:09:32 +08:00
liukangcc 3d2e23ec1c [update] move dfs_posix.h to legacy/dfs/dfs_posix.h 2022-01-14 23:09:32 +08:00
Meco Man f89a162ea3 [core] 使用rt_memcpy rt_memset代替memcpy memset 2022-01-09 00:23:18 +08:00
Meco Man 918ee6147c add RT_USING_POSIX_STDIO 2022-01-05 23:11:58 +08: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
马志远 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
Meco Man 921e606426 将defined(__CC_ARM) || defined(__CLANG_ARM) 改为 ifdef __ARMCC_VERSION 2021-06-13 17:36:42 +08:00
Meco Man 740a810274 [errno][libc] 解决sys头文件在libc未开启时的引入问题 2021-06-12 18:11:51 +08:00
crazt 86f12ac118 [components][finsh] add support for tasking toolchain 2021-03-26 17:39:40 +08:00
Meco Man 3c05a4e719 [compoenets] auto & manual formatted 2021-03-08 18:19:04 +08:00
chenchaoqun a1ac12c1f1 [update] function must have parameter 2020-07-24 15:20:12 +08:00
Jingsai Lu cd1ff2ab0d fix spelling mistake in the comments of shell.c 2019-12-07 13:47:03 +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
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
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
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
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
chenchaoqun@rt-thread.com 931cdb1f6f [finsh/shell] compatible definition for cube package 2018-11-07 14:31:32 +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
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
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
aozima e49a29f2dc [shell] add re-initial check. 2018-07-02 09:56:12 +08:00