guo
ecf2d82159
sync branch rt-smart. ( #6641 )
...
* Synchronize the code of the rt mart branch to the master branch.
* TTY device
* Add lwP code from rt-smart
* Add vnode in DFS, but DFS will be re-write for rt-smart
* There are three libcpu for rt-smart:
* arm/cortex-a, arm/aarch64
* riscv64
Co-authored-by: Rbb666 <zhangbingru@rt-thread.com>
Co-authored-by: zhkag <zhkag@foxmail.com>
2022-12-03 12:07:44 +08:00
Man, Jianting (Meco)
bdd663a33f
[libc][musl] support arm-linux-musleabi toolchain
...
目前基本功能已经可以在QEMU上跑起来,但是pthread和内核signal选中会报冲突。先合并一版本,后续解决这些问题。
2022-11-22 21:40:50 -05:00
Meco Man
84eab69604
[msh] remove list_xxx commands, use 'list' to replace
2022-11-21 21:39:45 -05:00
a1012112796
5370d4da50
replace `rt_enter_critical` with `dfs_lock` for list_fd
...
I found that if use mutex in `rt_kprintf`,
the `rt_enter_critical` will create a assert
error later. after chehcking,I found all
operation with fd_table has using
`dfs_lock/unlock` to protect. so I think
using `dfs_lock` is enough. thanks.
Signed-off-by: a1012112796 <1012112796@qq.com>
2022-11-09 22:41:15 -05:00
winfenggao
74fd07a565
lseek()函数中,当seek到文件的位置和当前位置相同时,不需要调用dfs_file_lseek()函数,直接返回当前位置即可。 ( #6498 )
...
当seek到文件的位置和当前位置相同时,不需要调用dfs_file_lseek()函数,直接返回当前位置即可。
同时,以lseek(fd,0,SEEK_CUR)的方式执行函数可以返回文件当前读去位置,可以实现
ftell()的功能.
以lseek(fd,0,SEEK_CUR)的方式执行函数返回文件当前位置,实现ftell()的功能时不用调用dfs_file_lseek()函数,提高效率;seek(fd,0,SEEK_CUR)本来就能返回当前位置。
2022-10-10 17:48:02 -04:00
Tangyuxin
a4829b1c00
[fix] Fix simulator compilation warnings ( #6438 )
...
* [fix] Fix simulator compilation warnings
* Update bsp/simulator/rtconfig_project.h
Co-authored-by: Man, Jianting (Meco) <920369182@qq.com>
2022-09-20 10:31:11 -04:00
dongly
3363586cbb
Fix some compilation warning ( #5744 )
...
* Fix some compilation warning
* 补充修正一些数据类型的使用错误
Co-authored-by: Meco Man <920369182@qq.com>
2022-08-02 12:09:49 -04:00
Man, Jianting (Meco)
2c10d5ad01
[rtc] use gmtime_r to replace gmtime ( #6012 )
...
* [rtc] use gmtime_r to replace gmtime
2022-06-22 13:41:06 +08:00
Bernard Xiong
1aab3607af
Revert "[dfs][romfs]支持相对地址模式 ( #5768 )" ( #5786 )
...
This reverts commit e68f934ff8
.
2022-04-08 20:03:43 +08:00
Tangyuxin
e68f934ff8
[dfs][romfs]支持相对地址模式 ( #5768 )
2022-04-06 21:13:12 +08:00
a1012112796
961fe7de0b
list_fd 显示完整路径 ( #5683 )
2022-03-26 15:45:53 +08:00
Man, Jianting (Meco)
a514b3bd16
[components][kconfig] 整理Kconfig目录名称和结构 ( #5698 )
2022-03-25 23:07:18 +08:00
guozhanxin
9b44535740
add RT_DEBUG_SCHEDULER_AVAILABLE check
2022-01-26 16:03:31 +08:00
Meco Man
add72f1d7c
[dfs][posix] add creat()
2022-01-20 20:50:24 +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
ed09f38012
[libc] remove RT_USING_LIBC
2021-12-30 01:27:25 +08:00
Meco Man
7c789d4b11
revise some RT_USING_POSIX to RT_USING_POSIX_DEVIO
2021-11-24 09:47:55 -05:00
Meco Man
a3284876ff
revise RT_USING_POSIX_STDIO to RT_USING_POSIX_DEVIO
2021-11-24 08:41:10 -05:00
Bernard Xiong
f11113f557
Merge pull request #5277 from mysterywolf/compatibility
...
implement legacy support
2021-11-24 17:37:25 +08:00
Bernard Xiong
64023c38f7
Merge pull request #5283 from mysterywolf/dfs
...
[dfs] move dfs back
2021-11-24 17:37:03 +08:00
Meco Man
df9a23c534
[mutex] use RT_IPC_FLAG_PRIO to replace RT_IPC_FLAG_FIFO
2021-11-17 15:57:15 -05:00
Meco Man
973f25901c
[dfs] move dfs back
2021-11-16 00:57:56 -05:00
Meco Man
c6c1544c84
implement legacy support
2021-11-14 23:51:05 -05:00
Meco Man
2b7d12661e
remove RT_USING_LIBC from dfs_fs.h
2021-11-09 18:40:53 -05:00
Meco Man
f8388c572e
add RT_USING_POSIX_STDIO
2021-11-07 23:41:16 -05:00
Jianting (Meco) Man
702b91c3ce
[dfs] 保留dfs_poll.h dfs_select.h,加warning提示
2021-10-27 23:44:46 -04:00
guo
bb859e79e0
Merge pull request #5223 from cndabai/fatfs
...
update fatfs to the latest version
2021-10-27 18:24:37 +08:00
guo
4107d7bea2
Merge pull request #5236 from mysterywolf/posix
...
[libc][posix] 解决RT_LIBC_USING_FILEIO范围过大的问题
2021-10-27 18:06:54 +08:00
Meco Man
25bd908fb7
[libc][posix] 解决RT_LIBC_USING_FILEIO范围过大的问题
2021-10-27 03:04:05 -04:00
guo
3f4eead5a7
Merge pull request #5199 from mysterywolf/removeselectpoll
...
[dfs] remove dfs_select.h and dfs_poll.h
2021-10-27 13:58:31 +08:00
Meco Man
a9910a780e
[posix][libc] 优化libc中posix结构
2021-10-26 23:09:54 -04:00
mazhiyuan
3c964519b6
[fatfs]update .ignore_format.yml
2021-10-25 16:58:27 +08:00
mazhiyuan
92ee14ff7a
update ff.c/h
2021-10-25 14:41:50 +08:00
mazhiyuan
41af944949
update ffconf.h
2021-10-25 14:10:58 +08:00
mazhiyuan
39933d7305
update ffconf.h
2021-10-25 13:58:07 +08:00
mazhiyuan
ecd84844c5
update fatfs to the latest version
2021-10-25 11:41:34 +08: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
20924ea3f5
[dfs] remove dfs_select.h and dfs_poll.h
2021-10-17 17:16:59 -04:00
Jianting (Meco) Man
8c01acc667
Revert "[libc]&[dfs] remove unnecessary RT_USING_POSIX and RT_USING_DFS_DEVFS"
2021-10-14 20:11:01 -04:00
Meco Man
a354f846e8
[libc]&[dfs] remove unnecessary RT_USING_POSIX and RT_USING_DFS_DEVFS
2021-10-13 15:21:41 -04:00
tangyuxin
08e5e9d25f
[bsp][simulator] Fix compilation errors
2021-10-11 20:09:47 +08:00
Bernard Xiong
7b6aff0696
Merge pull request #5092 from mysterywolf/removeselect
...
[libc标准化]脱敏dfs_select.h 由标准sys/select.h代替
2021-09-27 17:54:28 +08:00
Meco Man
1d00635ee9
[fatfs] 互斥量保护超时可通过Kconfig配置时间
2021-09-25 13:45:55 -04:00
Meco Man
32e9aa21c4
[fatfs] 修复time相关函数开启条件
2021-09-25 12:15:41 -04:00
Meco Man
50e215cfd4
[dfs][filesystems] 增加format_ignore文件,排除fatfs格式检查
2021-09-25 12:00:44 -04:00
Meco Man
cba2dd9016
[fatfs] 修改互斥保护超时时间
...
防止因一些正常复杂耗时操作,导致fatfs认为 timeout failure。
2021-09-25 11:59:13 -04:00
Meco Man
ee4b7916a3
[libc标准化]脱敏dfs_select.h 由标准sys/select.h代替
2021-09-22 16:45:21 -04:00
Meco Jianting Man
f1088e77d1
Merge branch 'RT-Thread:master' into select
2021-09-14 18:11:44 -05:00
Meco Man
dc5ee9ade7
[libc标准化] 将dfs_select.h功能转移到sys/select.h
2021-09-13 13:08:03 -04:00
Meco Man
e91ffdd1a0
[libc] fix the conflict warning of read and write functions
2021-09-13 11:39:04 -04:00
guo
160d448660
Merge pull request #5051 from mysterywolf/be_libc
...
[libc标准化] 使用标准poll.h代替dfs_poll.h
2021-09-13 10:45:09 +08:00
Meco Man
c48445a5f7
[标准化libc] fix CI warning
2021-09-11 18:33:46 -04:00
Meco Man
2c525ecd43
将dfs_posix.h的函数声明转移到unix标准头文件中
2021-09-11 15:42:37 -04:00
Meco Man
c360688714
使用poll.h代替dfs_poll.h
2021-09-11 11:56:54 -04:00
Meco Man
92c62a8fab
标准化<poll.h> 弱化<dfs_poll.h>
2021-09-11 11:25:43 -04:00
Bernard Xiong
8da9f78d72
[libc] remove rtlibc
2021-09-11 11:07:51 +08:00
Meco Man
dd9db58a86
优化dfs.h和dirent.h的包含关系
2021-09-01 09:28:16 -04:00
Meco Man
aab382c32e
[rtlibc] remove libc_dirent.h
2021-08-30 22:39:14 -04:00
Meco Man
fc094e9211
[rtlibc] remove libc_signal.h and libc_fdset.h
2021-07-21 19:42:38 +08:00
guozhanxin
8102502b98
[devfs] F_GETFL/F_SETFL should be handled by the drivers.
2021-07-08 16:38:40 +08:00
Meco Man
a5f7635f31
remove libc_errno.h & libc_limits.h
2021-05-22 02:50:35 +08:00
Meco Man
8676fd966e
[dfs] 将文件系统默认最大数量以及最大类型改为4
2021-05-21 18:02:43 +08:00
Meco Man
14c29063e8
[devfs] _device_fs增加注释
2021-05-21 17:50:57 +08:00
Meco Man
40c09fc1e0
重新分类为common文件夹下属all文件夹和excgcc文件夹
2021-04-21 00:56:36 +08:00
Meco Man
6026c68d37
加入<sys/types.h>声明
2021-04-18 01:00:37 +08:00
Meco Man
d1d9c492f8
[bug][dfs] rt_strlen(name) + 1) -> DFS_PATH_MAX
2021-03-27 01:24:32 +08:00
Meco Man
b7bfa04c06
[dfs] cat命令执行后增加\n 与linux行为一致
2021-03-21 02:03:45 +08:00
Bernard Xiong
b12615f344
Merge pull request #4427 from mysterywolf/components
...
[components] auto & manual formatted
2021-03-16 13:53:54 +08:00
yangjie
3ec59a8865
[components][dfs/Kconfig] 修改help描述
2021-03-15 13:44:25 +08:00
Meco Jianting Man
cd4cf46f3b
Delete dfs_jffs2.h
2021-03-12 10:10:31 +08:00
Meco Jianting Man
5dfe7a8f68
Delete dfs_jffs2.c
2021-03-12 10:10:21 +08:00
Meco Jianting Man
c6b6b77716
Delete dfs_uffs.h
2021-03-12 10:09:56 +08:00
Meco Jianting Man
40a087fc8d
Delete uffs_rtthread.c
2021-03-12 10:09:47 +08:00
Meco Jianting Man
f3fbbf8477
Delete dfs_uffs.c
2021-03-12 10:09:34 +08:00
yangjie
29d11a6d0d
[components][dfs] remove jffs2 and uffs
2021-03-11 16:47:15 +08:00
Meco Man
3c05a4e719
[compoenets] auto & manual formatted
2021-03-08 18:19:04 +08:00
Meco Man
b2d3317c6a
remove minilibc
2021-02-23 03:21:16 +08:00
Meco Jianting Man
19d56fbc50
Update dfs_elm.c
2021-02-19 07:49:48 +00:00
Meco Man
e90a0ee03c
[fatfs][rtc][bug] 修复FATFS底层接口get_fattime获取时间条件的bug
2021-02-18 15:43:22 +08:00
Meco Man
86ebf17a23
localtim改为gmtime
2021-02-07 21:49:25 +08:00
Meco Man
f073911cd3
解决底层驱动格林威治时间与当地时间胡乱使用的问题 mktime函数改为timegm函数
2021-02-07 21:08:41 +08:00
Wayne Lin
44e9a48f1d
Enlarge ECC/DATA layout array size.
2021-01-26 17:04:47 +08:00
Wayne Lin
998e370ae1
Append RT_WEAK to override various ECC layout.
2021-01-26 10:44:00 +08:00
Bernard Xiong
953a9ee84c
Merge pull request #3681 from cliff-cmc/master
...
[components] dfs: update elmfat to R0.14 patch 1
2020-12-31 15:00:37 +08:00
Han Xinrong
db4b3ff125
modify code style
2020-12-15 11:37:23 +08:00
Han Xinrong
a1fe7b1ddf
modify the error check of rt_event_recv()
2020-12-13 19:11:04 +08:00
Han Xinrong
3bb8edf4c1
error check of rt_event_recv()
...
add error check
2020-12-09 22:24:01 +08:00
liuduanfei
22c47d4b19
Update dfs_romfs.c
...
修改一处拼写错误
2020-12-03 09:59:09 +08:00
xingkong121
9b925fb9c0
Modify comment error
...
Device file system should be registered
2020-11-28 22:47:06 +08:00
tangyuxin
8861202c3b
[dfs] fix the DEVICE could not get or set flags
2020-09-26 12:30:39 +08:00
tangyuxin
50dc41468e
[add] DFS file system supports device types
2020-09-26 09:55:58 +08:00
Bernard Xiong
ad3e6d8898
[DFS] clean the unnecessary checking
2020-08-07 08:51:22 +08:00
Cliff Chen
1a9ecf27f3
[components] dfs: update elmfat to R0.14 patch 1
...
merge from https://github.com/abbrev/fatfs.git
(cf1fa008119c8ae2d05311ba3d97da0c4dca33b6)
Signed-off-by: Cliff Chen <cliff.chen@rock-chips.com>
Change-Id: I321ba7933e1a4d6c07b3fbaa2a134eb54bb43b32
2020-06-12 16:31:43 +08:00
longtengmcu
d75f03e4b0
1、解决do_pollfd函数中处理底层网络设备返回错误-1的情况,返回-1时select函数也要返回-1 …
...
2、网卡设备调用关闭dhcp时,底层要调用dhcp_stop函数来关闭dhcp功能,打开时再调用dhcp_start,否则再次打开dhcp时无法获取ip地址或者出现在使用静态ip地址会在dhcp租约到期时自动再获取ip地址。
3、sal_socket.c程序中的sal_accept函数增加判断网卡up,down的功能
4、修改注释信息
2020-05-21 22:05:38 +08:00
longtengmcu
63950c9259
1、解决do_pollfd函数中处理底层网络设备返回错误-1的情况,返回-1时select函数也要返回-1
...
2、网卡设备调用关闭dhcp时,底层要调用dhcp_stop函数来关闭dhcp功能,打开时再调用dhcp_start,否则再次打开dhcp时无法获取ip地址或者出现在使用静态ip地址会在dhcp租约到期时自动再获取ip地址。
3、sal_socket.c程序中的sal_accept函数增加判断网卡up,down的功能
2020-05-17 15:51:35 +08:00
Cliff Chen
1c68bd9d3c
Support msc mode automatic switching
...
Signed-off-by: Cliff Chen <cliff.chen@rock-chips.com>
2020-03-16 10:50:34 +08:00
David Lin
ec20c2c7ff
Fixed typo 'WirtePageWithLayout' in uffs
...
WirtePageWithLayout ->WritePageWithLayout
2020-02-21 21:37:05 +08:00
David Lin
3790384734
Fixed typo 'WirtePageWithLayout' in uffs
...
WirtePageWithLayout ->WritePageWithLayout
2020-02-21 21:34:21 +08:00