Proper way to implement/register a filesystem driver?

I’m have this cases:

  • an OS without directory support
  • a virtual filesystem (http://) based
  • a virtual filesystem using zip and tar
  1. lvgl\lvgl.h
    #define LV_USE_FS_XXXFS 1
    #if LV_USE_FS_XXXFS
    #define LV_FS_XXXFS_LETTER ‘X’
    #define LV_FS_XXXFS_CACHE_SIZE 0
    #endif

  2. lvgl\src\extra\libs\fsdrv\lv_fsdrv.h
    #if LV_USE_FS_XXXFS != ‘\0’
    void lv_fs_XXX_init(void);
    #endif

  3. implement it

  • lvgl\src\extra\libs\fsdrv\lv_fs_xxx.h
  • lvgl\src\extra\libs\fsdrv\lv_fs_xxx.c
  1. rebuild

  2. use it!