- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi
I use the vendor command to reset the salve fifo of endpoint(ep2 and ep6, ep2 is out endpoint and ep6 is in endpoint), as follows:
BOOL DR_VendorCmnd( void )
{
if(SendBuf[2] == 0x06)
{
IsMasterStoped = TRUE;
}
}
void TD_Poll( void )
{
if(IsMasterStoped == TRUE)
{
FIFORESET = 0x80; SYNCDELAY; // activate NAK-ALL to avoid race conditions
//FIFORESET = 0x02; SYNCDELAY; // reset, FIFO 2
FIFORESET = 0x06; SYNCDELAY; // reset, FIFO 6
FIFORESET = 0x00; SYNCDELAY;
SYNCDELAY;
SYNCDELAY;
SYNCDELAY;
SYNCDELAY;
IsMasterStoped = FALSE;
}
}
If I reset the ep6 individually, it can be reset normally, but if I both reset the ep2 and ep6, the ep6 can work normally, while the ep2 does not work any more, How to slove it?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Could you please let me know if you are using the FIFOs in AUTO mode or manual mode?
Would it be possible to share the complete source code?
Regards,
Mallika
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Could you please let me know if you are using the FIFOs in AUTO mode or manual mode?
Would it be possible to share the complete source code?
Regards,
Mallika