Subversion Repositories freemyipod

Rev

Rev 889 | Rev 945 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 889 Rev 890
Line 310... Line 310...
310
    {
310
    {
311
        usb_handle_bus_reset(instance, data->core->dregs.dsts.b.enumspd == 0);
311
        usb_handle_bus_reset(instance, data->core->dregs.dsts.b.enumspd == 0);
312
        synopsysotg_ep0_init(instance);
312
        synopsysotg_ep0_init(instance);
313
    }
313
    }
314
 
314
 
315
    if (gintsts.b.rxstsqlvl)
315
    if (gintsts.b.rxstsqlvl && !data->use_dma)
316
    {
316
    {
317
        // Device to memory part of the "software DMA" implementation, used to receive data if use_dma == 0.
317
        // Device to memory part of the "software DMA" implementation, used to receive data if use_dma == 0.
318
        // Handle one packet at a time, the IRQ will re-trigger if there's something left.
318
        // Handle one packet at a time, the IRQ will re-trigger if there's something left.
319
        union synopsysotg_grxfsts rxsts = data->core->gregs.grxstsp;
319
        union synopsysotg_grxfsts rxsts = data->core->gregs.grxstsp;
320
        int ep = rxsts.b.chnum;
320
        int ep = rxsts.b.chnum;