Description
Is your feature request related to a problem? Please describe.
When working with Filex and making custom driver, for instance, SD card using SPI, I need to extern the hspiX from the main.c to implement the driver. This approach ends up forcing me to have only one instance of this custom driver.
Describe the solution you'd like
By having the handle inside the FX_MEDIA class preferably as a (void *) type, I would be able to typecast it into my desired peripheral Handle, be it SDMMC, SPI, I2C or anything else and have multiple instances of the same driver to define different devices all connect via the same custom peripheral.
Describe alternatives you've considered
Alternatively expanding the available base options would be great. But the work involved might be non-trivial as opposed to the above change
Additional context
Add any other context or screenshots about the feature request here.