I am trying to make small data logger project with STM32F072 as an opportunity to get more familiar with STM's HAL.
With CubeMX I generated HAL code that has SPI and also includes FatFS.
Right now I am having issue gluing SPI low level drivers to FatFS.
Can someone please point me in the right direction or post some examples on how to glue HAL SPI functions to FatFS? Right now I see that there is following declaration generated by HAL, but I can't seem to find any actual implementation that works.
Diskio_drvTypeDef USER_Driver =
{
USER_initialize,
USER_status,
USER_read,
#if _USE_WRITE
USER_write,
#endif /* _USE_WRITE == 1 */
#if _USE_IOCTL == 1
USER_ioctl,
#endif /* _USE_IOCTL == 1 */
};
Any examples or documentation on how to implement this would be very much appreciated.