• R/O
  • SSH
  • HTTPS

chibios: Commit


Commit MetaInfo

Revision15208 (tree)
Time2021-12-06 17:33:49
Authorgdisirio

Log Message

(empty log message)

Change Summary

Incremental Difference

--- trunk/demos/STM32/RT-VFS-FATFS/main.c (revision 15207)
+++ trunk/demos/STM32/RT-VFS-FATFS/main.c (revision 15208)
@@ -112,6 +112,11 @@
112112 /* VFS related. */
113113 /*===========================================================================*/
114114
115+#if VFS_CFG_ENABLE_DRV_FATFS == TRUE
116+/* VFS FatFS driver object representing the root directory.*/
117+static vfs_fatfs_driver_c root_driver;
118+#endif
119+
115120 /* VFS overlay driver object representing the root directory.*/
116121 static vfs_overlay_driver_c root_overlay_driver;
117122
@@ -118,9 +123,6 @@
118123 /* VFS streams driver object representing the /dev directory.*/
119124 static vfs_streams_driver_c vfs_dev;
120125
121-/* VFS FatFS driver object representing the root directory.*/
122-static vfs_fatfs_driver_c root_driver;
123-
124126 vfs_driver_c *vfs_root = (vfs_driver_c *)&root_overlay_driver;
125127
126128 static NullStream nullstream;
@@ -276,7 +278,7 @@
276278 #else
277279 /* Initializing an overlay VFS object as a root, no overlaid driver,
278280 no need for a name.*/
279- drvOverlayObjectInit(&root_driver, NULL, "");
281+ drvOverlayObjectInit(&root_overlay_driver, NULL, "");
280282 #endif
281283
282284 /* Registering a streams VFS driver on the VFS overlay root as "/dev".*/
Show on old repository browser