2016-01-26 12:24 PM
Guys,
I have question for : Diskio_drvTypeDef USER_Driver Code :/* Private function prototypes -----------------------------------------------*/
DSTATUS USER_initialize (BYTE pdrv);
DSTATUS USER_status (void);
DRESULT USER_read (BYTE pdrv,BYTE*, DWORD, UINT);
#if _USE_WRITE == 1
DRESULT USER_write (BYTE pdrv,BYTE*, DWORD, UINT);
#endif /* _USE_WRITE == 1 */
#if _USE_IOCTL == 1
DRESULT USER_ioctl (BYTE, void*);
#endif /* _USE_IOCTL == 1 */
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 */
};
I got warning :
..\Src\user_diskio.c(113): warning: #144-D: a value of type ''DSTATUS (*)(BYTE)'' cannot be used to initialize an entity of type ''DSTATUS (*)(void)''
How can I fix it ? or can it be ignored ?