Commit Graph

133 Commits

Author SHA1 Message Date
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 ef0117ed3d Added ERANGE error.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15249 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
2021-12-24 10:44:55 +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 fff0615869 Removed some dead code.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15240 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
2021-12-13 13:03:32 +00:00
Giovanni Di Sirio d28faca5e1 Added a path normalization function, minor doc fixes.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15239 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
2021-12-13 13:01:56 +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 51d0da4eff git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15237 27425a3e-05d8-49a3-a47f-9c15f0e5edd8 2021-12-13 08:11:17 +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
Giovanni Di Sirio 10189b4178 git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15233 27425a3e-05d8-49a3-a47f-9c15f0e5edd8 2021-12-10 15:27:48 +00:00
Giovanni Di Sirio f07afd688d Added template files for a file system.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15232 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
2021-12-10 14:26:09 +00:00
Giovanni Di Sirio 3827b5dc01 git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15231 27425a3e-05d8-49a3-a47f-9c15f0e5edd8 2021-12-10 13:22:00 +00:00
Giovanni Di Sirio fc48d1f6c2 Documentation fixes.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15230 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
2021-12-10 13:05:20 +00:00
Giovanni Di Sirio fd0d4fe979 Fixed small regression.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15229 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
2021-12-10 08:50:11 +00:00
Giovanni Di Sirio 4efe731c5e git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15228 27425a3e-05d8-49a3-a47f-9c15f0e5edd8 2021-12-09 16:03:58 +00:00
Giovanni Di Sirio 6100c01bdc git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15227 27425a3e-05d8-49a3-a47f-9c15f0e5edd8 2021-12-09 16:02:46 +00:00
Giovanni Di Sirio e3c3e9916a git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15226 27425a3e-05d8-49a3-a47f-9c15f0e5edd8 2021-12-09 15:51:39 +00:00
Giovanni Di Sirio 4b0248ca33 Parser improvements, inclusions reorganization.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15225 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
2021-12-09 14:12:21 +00:00
Giovanni Di Sirio cf97561662 Preparation for a "chroot"-like feature.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15224 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
2021-12-09 13:40:01 +00:00
Giovanni Di Sirio 613dec7ec7 Added buffers management to VFS.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15223 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
2021-12-09 11:17:34 +00:00
Giovanni Di Sirio 21fe686797 git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15212 27425a3e-05d8-49a3-a47f-9c15f0e5edd8 2021-12-06 19:13:59 +00:00
Giovanni Di Sirio 7273b02b26 git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15207 27425a3e-05d8-49a3-a47f-9c15f0e5edd8 2021-12-06 07:37:00 +00:00
Giovanni Di Sirio 24d0d0e4fb Optimized use of memory pools.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15206 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
2021-12-06 07:13:49 +00:00
Giovanni Di Sirio a07310d3cd Added a simple "cat" command. Fixed VFS overlay driver file open.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15203 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
2021-12-05 12:46:08 +00:00
Giovanni Di Sirio fe6602f75f git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15202 27425a3e-05d8-49a3-a47f-9c15f0e5edd8 2021-12-05 12:26:00 +00:00
Giovanni Di Sirio cc7d41bbd6 Improved various syscalls.c files.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15201 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
2021-12-05 11:44:58 +00:00
Giovanni Di Sirio 33ffc0d95e Fixed C++ support in syscalls.c.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15192 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
2021-12-05 08:39:01 +00:00
Giovanni Di Sirio 3dd90761f5 it almost makes sense...
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15190 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
2021-12-04 13:28:50 +00:00
Giovanni Di Sirio 98c734b863 git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15189 27425a3e-05d8-49a3-a47f-9c15f0e5edd8 2021-12-04 13:20:49 +00:00
Giovanni Di Sirio 3702d67de4 Integrated with the new OOP infrastructure, not finished.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15188 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
2021-12-04 12:30:13 +00:00
Giovanni Di Sirio e8520182e0 Easier VFS integration.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15187 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
2021-12-04 11:19:22 +00:00
Giovanni Di Sirio 4851184656 syscalls prototype
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15184 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
2021-12-03 15:16:41 +00:00
Giovanni Di Sirio d11ba7310f Error codes closer to Posix.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15183 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
2021-12-03 13:12:19 +00:00
Giovanni Di Sirio c56242ebfa git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15182 27425a3e-05d8-49a3-a47f-9c15f0e5edd8 2021-12-03 12:16:39 +00:00
Giovanni Di Sirio 4d93f7ca79 Open flags compatible with Posix.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15181 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
2021-12-03 12:15:42 +00:00
Giovanni Di Sirio 8318caf5ff Simplified API.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15180 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
2021-12-03 10:03:49 +00:00
Giovanni Di Sirio c74e24e840 More FatFS integration code.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15175 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
2021-12-02 13:52:30 +00:00
Giovanni Di Sirio c2450fd8d4 Fixed overlay driver and scanning loop in the demo.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15171 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
2021-12-01 14:50:12 +00:00
Giovanni Di Sirio c56cc2ec86 VFS demo working, several details missing.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15161 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
2021-12-01 10:15:49 +00:00
Giovanni Di Sirio a39182225c Fixed state checker violation.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15157 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
2021-11-30 11:07:29 +00:00
Giovanni Di Sirio 3e8c949549 Fixed some struct names.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15156 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
2021-11-30 10:20:31 +00:00
Giovanni Di Sirio 4bd621b1cb Patched FatFS, revised mount/unmount code for VFS FatFS driver.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15155 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
2021-11-30 09:18:00 +00:00
Giovanni Di Sirio 1b3d34696d git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15154 27425a3e-05d8-49a3-a47f-9c15f0e5edd8 2021-11-29 15:32:00 +00:00
Giovanni Di Sirio ab568fd909 git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15153 27425a3e-05d8-49a3-a47f-9c15f0e5edd8 2021-11-29 13:54:15 +00:00
Giovanni Di Sirio 80ff5d0766 cleanup
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15152 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
2021-11-29 13:29:30 +00:00
Giovanni Di Sirio 271f5841ce Improved checks.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15151 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
2021-11-29 13:15:39 +00:00
Giovanni Di Sirio 8119b966d0 Reorganized configuration files, reorganized headers.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15150 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
2021-11-29 12:57:32 +00:00
Giovanni Di Sirio 99a4ca309a Fixed missing initialization.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15149 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
2021-11-29 12:36:48 +00:00
Giovanni Di Sirio 5e3c8f9358 git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15148 27425a3e-05d8-49a3-a47f-9c15f0e5edd8 2021-11-29 11:56:34 +00:00
Giovanni Di Sirio 81b9add500 Added an overlay VFS driver.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15146 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
2021-11-29 09:45:48 +00:00
Giovanni Di Sirio 27fa20c4d1 git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15145 27425a3e-05d8-49a3-a47f-9c15f0e5edd8 2021-11-28 15:04:16 +00:00
Giovanni Di Sirio cff83afd75 File modes.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15144 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
2021-11-28 07:06:07 +00:00
Giovanni Di Sirio b7ed77e580 Added diagrams.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15143 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
2021-11-27 13:08:37 +00:00
Giovanni Di Sirio 2e7c585556 FatFS driver templates.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15142 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
2021-11-27 09:27:45 +00:00
Giovanni Di Sirio 7419070c91 Added vfsGetFileStream() function.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15141 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
2021-11-27 07:07:26 +00:00
Giovanni Di Sirio fc7e00365d Directory enumeration now working.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15140 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
2021-11-27 06:44:44 +00:00
Giovanni Di Sirio aaf5fd78ad Fixes and parser improvements.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15139 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
2021-11-26 20:15:39 +00:00
Giovanni Di Sirio 31d49e9170 git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15138 27425a3e-05d8-49a3-a47f-9c15f0e5edd8 2021-11-26 15:28:35 +00:00
Giovanni Di Sirio e1289f82da Some rework, not yet complete.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15137 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
2021-11-26 13:58:45 +00:00
Giovanni Di Sirio 821b75bb53 VFS demo application, not yet functional.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15136 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
2021-11-26 12:51:42 +00:00
Giovanni Di Sirio 4ad2feceb2 git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15134 27425a3e-05d8-49a3-a47f-9c15f0e5edd8 2021-11-25 09:25:59 +00:00
Giovanni Di Sirio ed8f3e4404 git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15131 27425a3e-05d8-49a3-a47f-9c15f0e5edd8 2021-11-23 14:53:10 +00:00
Giovanni Di Sirio b1abb2fc34 git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15130 27425a3e-05d8-49a3-a47f-9c15f0e5edd8 2021-11-23 11:03:19 +00:00
Giovanni Di Sirio fc29bee998 git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15129 27425a3e-05d8-49a3-a47f-9c15f0e5edd8 2021-11-23 08:19:39 +00:00
Giovanni Di Sirio 09747ca593 Parser improvements, streams adapter driver header.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15128 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
2021-11-22 16:20:32 +00:00
Giovanni Di Sirio 6c1ff11e02 git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15127 27425a3e-05d8-49a3-a47f-9c15f0e5edd8 2021-11-22 13:55:23 +00:00
Giovanni Di Sirio 4dc0c2fe2b git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15125 27425a3e-05d8-49a3-a47f-9c15f0e5edd8 2021-11-21 18:49:24 +00:00
Giovanni Di Sirio a61f93feb3 Reworked error codes to be more HAL-like. Added a separate parser module.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15124 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
2021-11-21 18:32:41 +00:00
Giovanni Di Sirio 6bd121bd45 Rework of the objects model.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15123 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
2021-11-21 17:28:25 +00:00
Giovanni Di Sirio 213c2dfade git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15122 27425a3e-05d8-49a3-a47f-9c15f0e5edd8 2021-11-21 14:58:16 +00:00
Giovanni Di Sirio d1a4ba093d More VFS code.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15121 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
2021-11-21 13:01:29 +00:00
Giovanni Di Sirio 47e16b7bd8 More VFS draft code.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15120 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
2021-11-20 17:27:14 +00:00
Giovanni Di Sirio 6a9ebbeb62 Mode details about nodes.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15119 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
2021-11-20 13:39:18 +00:00
Giovanni Di Sirio 1968d8b0bd Separate classes for files and directories.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15118 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
2021-11-20 05:26:34 +00:00
Giovanni Di Sirio 1a103a9a5e git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15115 27425a3e-05d8-49a3-a47f-9c15f0e5edd8 2021-11-19 20:16:06 +00:00
Giovanni Di Sirio 656692ac4d Tentative VFS subsystem.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15114 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
2021-11-19 16:24:21 +00:00