Commit Graph

97 Commits

Author SHA1 Message Date
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) 2c10d5ad01
[rtc] use gmtime_r to replace gmtime (#6012)
* [rtc] use gmtime_r to replace gmtime
2022-06-22 13:41:06 +08:00
Meco Man f89a162ea3 [core] 使用rt_memcpy rt_memset代替memcpy memset 2022-01-09 00:23:18 +08:00
Meco Man ed09f38012 [libc] remove RT_USING_LIBC 2021-12-30 01:27:25 +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
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 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 cba2dd9016 [fatfs] 修改互斥保护超时时间
防止因一些正常复杂耗时操作,导致fatfs认为 timeout failure。
2021-09-25 11:59:13 -04:00
Meco Man d1d9c492f8 [bug][dfs] rt_strlen(name) + 1) -> DFS_PATH_MAX 2021-03-27 01:24:32 +08:00
Meco Man 3c05a4e719 [compoenets] auto & manual formatted 2021-03-08 18:19:04 +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
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
zhangjun d08f533659 [components][dfs][filesystems][elmfat]修正代码风格 2019-10-08 09:11:35 +08:00
zhangjun 60f2ae4d3c [components][dfs]添加ftruncate接口 2019-09-26 10:22:33 +08:00
tyustli d8eb0cfc1e fix kernel and framework no cast type error 2019-06-18 20:09:19 +08:00
tangyuxin e71ec65549 [components][dfs]格式化代码 2019-04-08 14:51:01 +08:00
HubretXie 889afa7b04
Update dfs_elm.c
fatfs: mkfs时增加FM_SFD参数,减少文件系统对flash空间的占用
2018-12-03 18:09:52 +08:00
Bernard Xiong b5e9927b85 [license] Change the license of FS/DFS to Apache. 2018-10-15 01:46:07 +08:00
Bernard Xiong 8baf3d98e1 [DFS] fix the mkfs issue for multi-mounted fatfs 2018-07-28 16:34:51 +08:00
armink 0406175003 [components][dfs][fatfs] Add return 0 to get_fattime when RT_USING_LIBC not enable. 2018-06-11 19:57:57 +08:00
zyh 38169bb51a [Components][Dfs][Fat]fix mkfs bug 2018-03-18 17:22:22 +08:00
liu2guang e63de3f66b [elm] Fixed elm device unmount error when mounting multiple elm devices. 2018-01-24 15:13:42 +08:00
bernard 6d9fcd04d2 [Kernel] Change the order of initialization.
1. Remove INIT_FS_EXPORT and change INIT_DEVICE_EXPORT as the first item
in the initalization thread.
2. Move the eth_system_device_init into INIT_PREV_EXPORT item.
2017-11-03 11:44:37 +08:00
bernard 0f5a68a55e [dfs] add poll/select
1. Add poll/select APIs;
2. Add wait queue implementation;
3. Remove DFS_STATUS_* code and use errno;
4. Add pipe API;
5. Use a standalone fops in DFS;
2017-10-15 22:44:53 +08:00
yygg_you d428166f08 修复 mkfs失败的错误 2017-10-06 09:01:56 +08:00
bernard b7cf723162 [DFS] code cleanup 2017-06-15 14:36:59 +08:00
Urey 2426efe6b7 delete volatile 2017-05-26 21:05:10 +08:00
Urey 0e82a5b821 fix f_mount when mount more fats 2017-05-26 21:02:59 +08:00
xools 5b50c7e41b fix fattime different from elmfat definition 2017-04-16 16:13:15 -07:00
Bernard Xiong 5502558df9 [DFS] fix the st_blksize issue in elm fatfs. 2017-04-11 09:33:25 +08:00
unknown 6ee81de429 hichard 2017-02-13 22:33:15 +08:00
Bernard Xiong d2ec1f3eaa [DFS] remove st_blksize in the struct stat 2015-10-01 06:46:52 +00:00
Bernard Xiong 1377022b18 [DFS] Use SConscript of each file system to build. 2015-04-03 14:26:18 +00:00
bernard 5a6ec7dcae [DFS] fix the wrong field comparison in FAT mount. 2014-01-26 22:43:12 +08:00
bernard e601c2a6ed Add sector size check when mounting a FAT file system. 2014-01-26 20:30:37 +08:00
prife 26a31d662d dfs: make elmfatfs check secter size everytime
more infomation:
http://www.rt-thread.org/phpBB3/topic2965.html
2013-12-21 12:04:19 +08:00
bernard ac850ef3f0 add device_open/close in mkfs 2013-07-29 14:43:52 +08:00
bernard a124e7bd22 add initialization debug code 2013-07-24 07:33:48 +08:00
bernard b96b35613f add mount table 2013-07-22 07:46:10 +08:00
yiyue.fang 773990abdb Embedded GPLv2 license in dfs 2013-06-26 22:30:40 +08:00
Bernard Xiong 98c8a23e94 Add component initialization. 2013-06-23 07:48:42 +08:00
prife 157e326487 dfs_elm.c: fix the head file conflicts caused by time.h 2013-03-02 18:56:07 +08:00