Giovanni Di Sirio
608e5c5614
Improved interface of referenced objects, simpler use. Made all release() method implementations in VFS to be thread-safe.
...
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15804 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
2022-09-27 12:56:20 +00:00
Giovanni Di Sirio
7690f84348
Mass change: Source code convention changed from CRLF to just CR (Unix).
...
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15741 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
2022-08-29 15:54:32 +00:00
Giovanni Di Sirio
a94c13c652
Simplified buffers management.
...
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15589 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
2022-04-20 13:15:53 +00:00
Giovanni Di Sirio
7fbd1ae369
FatFS now functional on STM32H7xx, added a target to the VFS demo.
...
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15551 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
2022-03-22 08:32:36 +00:00
Giovanni Di Sirio
435ff12080
Added "stat" command to chibishell.
...
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15460 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
2022-02-12 08:56:56 +00:00
Giovanni Di Sirio
31a000e670
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15459 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
2022-02-11 14:23:33 +00:00
Giovanni Di Sirio
3cf08662ea
Fixed invalid root handling by the VFS streams driver.
...
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15455 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
2022-02-09 13:11:26 +00:00
Giovanni Di Sirio
0f368ef8b8
Added "mode" parameter to mkdir().
...
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15429 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
2022-02-02 18:42:19 +00:00
Giovanni Di Sirio
c110d0e482
More shell file management commands.
...
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15428 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
2022-02-02 11:26:17 +00:00
Giovanni Di Sirio
8ed8c6122e
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15427 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
2022-02-01 14:15:50 +00:00
Giovanni Di Sirio
e32669c268
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15417 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
2022-01-28 15:48:40 +00:00
Giovanni Di Sirio
11153809ab
File unlink handling added.
...
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15416 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
2022-01-28 10:24:04 +00:00
Giovanni Di Sirio
e08f28da20
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15408 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
2022-01-26 13:36:25 +00:00
Giovanni Di Sirio
d824edcfa7
Centralized paths handling code into /os/common/utils.
...
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15407 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
2022-01-26 10:36:03 +00:00
Giovanni Di Sirio
f38b8b8ecb
Added mkdir and rmdir.
...
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15403 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
2022-01-24 11:27:38 +00:00
Giovanni Di Sirio
ecf1ede710
Implementation stubs for the new VFS API.
...
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15400 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
2022-01-22 15:31:26 +00:00
Giovanni Di Sirio
913887ce72
Bugs fixed, many more to fix.
...
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15311 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
2022-01-02 14:04:44 +00:00
Giovanni Di Sirio
1ecc6215bb
Small regression fixed.
...
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15310 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
2022-01-02 11:01:00 +00:00
Giovanni Di Sirio
756a5e9ec5
Prevented FatFS header to spread definitions globally.
...
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15306 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
2022-01-02 10:12:16 +00:00
Giovanni Di Sirio
aeec24bfb7
Patched FatFS for improved errors report, needed for better Posix compatibility.
...
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15295 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
2021-12-31 11:35:32 +00:00
Giovanni Di Sirio
2b7b971aaa
Unified stat() for both files and directories.
...
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15294 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
2021-12-31 08:21:52 +00:00
Giovanni Di Sirio
068ebf8f21
Fixed node modes.
...
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15293 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
2021-12-30 17:57:25 +00:00
Giovanni Di Sirio
825e82d441
Made node modes more Posix-like.
...
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15292 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
2021-12-30 16:33:01 +00:00
Giovanni Di Sirio
37506abd8e
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15284 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
2021-12-29 21:04:42 +00:00
Giovanni Di Sirio
32e59f57fd
Simplified lseek() implementation.
...
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15283 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
2021-12-29 21:02:00 +00:00
Giovanni Di Sirio
aac3849aa4
Method addref() made virtual.
...
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15279 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
2021-12-29 11:48:21 +00:00
Giovanni Di Sirio
8eca9d11d6
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15277 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
2021-12-28 15:33:29 +00:00
Giovanni Di Sirio
4b9b255235
Created an unified errors header.
...
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15273 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
2021-12-28 13:09:43 +00:00
Giovanni Di Sirio
5a0129b5ac
Fixed inconsistent types, open flags are int.
...
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15272 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
2021-12-28 09:11:04 +00:00
Giovanni Di Sirio
a75d6af9f5
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15271 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
2021-12-28 08:00:24 +00:00
Giovanni Di Sirio
1014b5c0f6
Support for a "file stat" structure.
...
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15269 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
2021-12-27 18:48:56 +00:00
Giovanni Di Sirio
6c35d59058
Better mapping of Posix error codes.
...
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15268 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
2021-12-27 13:25:13 +00:00
Giovanni Di Sirio
2d0cbb43b5
Added CWD support to the FatFS driver.
...
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15263 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
2021-12-27 08:14:37 +00:00
Giovanni Di Sirio
472e68054c
Added missing methods.
...
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15262 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
2021-12-27 08:03:36 +00:00
Giovanni Di Sirio
6ee9cb3b46
Simplified registration API.
...
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15259 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
2021-12-26 11:17:55 +00:00
Giovanni Di Sirio
011498d696
Relative paths and chroot support working apparently.
...
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15254 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
2021-12-26 09:19:30 +00:00
Giovanni Di Sirio
7480e1eb3d
Directory-related commands apparently working now, file commands to be reworked.
...
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15253 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
2021-12-26 08:16:26 +00:00
Giovanni Di Sirio
a43c553ce0
Debugging...
...
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15252 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
2021-12-26 07:44:36 +00:00
Giovanni Di Sirio
107f03dc23
Setting CWD works now but there are other problems. Added an error code handling macro for convenience.
...
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15251 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
2021-12-25 14:24:18 +00:00
Giovanni Di Sirio
d53fa016d9
Some bugs fixed, others not yet.
...
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15250 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
2021-12-24 12:51:08 +00:00
Giovanni Di Sirio
8e60050444
First of many fixes to come.
...
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15248 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
2021-12-24 10:39:15 +00:00
Giovanni Di Sirio
7a34d5d52d
Small documentation fixes.
...
Added cd, cwd commands to shell.
Added directory API to VFS, some debug required.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15247 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
2021-12-24 10:10:40 +00:00
Giovanni Di Sirio
247222f759
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15246 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
2021-12-15 13:33:38 +00:00
Giovanni Di Sirio
b436f658dd
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15245 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
2021-12-15 08:48:27 +00:00
Giovanni Di Sirio
582af63da2
Preparation for "current directory" handling, not finished.
...
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15244 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
2021-12-14 14:59:15 +00:00
Giovanni Di Sirio
a3ef9790c0
Added check for maximum length.
...
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15241 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
2021-12-13 14:01:08 +00:00
Giovanni Di Sirio
2063cec94d
Added a template driver, some documentation fixes.
...
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15238 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
2021-12-13 08:21:31 +00:00
Giovanni Di Sirio
07141d819e
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15236 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
2021-12-12 15:03:10 +00:00
Giovanni Di Sirio
89b9f068ca
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15235 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
2021-12-12 14:59:23 +00:00
Giovanni Di Sirio
9c750d6aeb
Fixed a leak.
...
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15234 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
2021-12-12 09:23:14 +00:00