Dear community,
I am looking for a method to expose a device driver through the file system node or partition. The goal is to achieve Linux/udev-like behavior of a device exposed through the file system. In a nut shell, when approached through the ff_open()/ff_read()/ff_write/ioctl - the devices hook functions should get called and should manage state of underlaying device and data flow to/from it.
So far I have found only “Creating a FreeRTOS-Plus-FAT Media Driver” (sorr, as a new user I could not post a link here) description of this functionality which I am struggling to get working. Everything in the FF_RAMDiskInit() revolves around real/existing memory buffer and one of known FATs. FF_Mount() does not mount dummy instance of FF_Disk_t (even with valid IOManager instance attaached to it) and FF_FS_Add() although adding a disk to virtual file system, does not provide working link to registered IOManager read/write callbacks. The partition is to be seen, though. ff_open() of a file on that partition fails (with returned 0-file handler), without aforementioned callbacks ever being called.
Has anybody got this or comprable functionality working (on any hardware or version of FreeRTOS/FAT-library)?
Regards