cancel
Showing results for 
Search instead for 
Did you mean: 

A question for Diskio_drvTypeDef USER_Driver?

antonius
Senior
Posted on January 26, 2016 at 21:24

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 ?
0 REPLIES 0