OpenCores
URL https://opencores.org/ocsvn/gecko3/gecko3/trunk

Subversion Repositories gecko3

[/] [gecko3/] [trunk/] [GECKO3COM/] [gecko3com-fw/] [firmware/] [src/] [usb_tmc.c] - Diff between revs 16 and 28

Show entire file | Details | Blame | View Log

Rev 16 Rev 28
Line 185... Line 185...
        /* reset IN FIFOs */
        /* reset IN FIFOs */
        FIFORESET = bmNAKALL;                   SYNCDELAY;
        FIFORESET = bmNAKALL;                   SYNCDELAY;
        FIFORESET = bmNAKALL | USB_TMC_EP_IN;   SYNCDELAY;
        FIFORESET = bmNAKALL | USB_TMC_EP_IN;   SYNCDELAY;
 
 
        INPKTEND = bmSKIP | USB_TMC_EP_IN;      SYNCDELAY;
        INPKTEND = bmSKIP | USB_TMC_EP_IN;      SYNCDELAY;
 
        INPKTEND = bmSKIP | USB_TMC_EP_IN;      SYNCDELAY;
 
        INPKTEND = bmSKIP | USB_TMC_EP_IN;      SYNCDELAY;
 
        INPKTEND = bmSKIP | USB_TMC_EP_IN;      SYNCDELAY;
 
 
        FIFORESET = 0;               SYNCDELAY;
        FIFORESET = 0;               SYNCDELAY;
 
 
      }
      }
 
 
Line 251... Line 254...
      OUTPKTEND = bmSKIP | USB_TMC_EP_OUT;       SYNCDELAY;
      OUTPKTEND = bmSKIP | USB_TMC_EP_OUT;       SYNCDELAY;
      OUTPKTEND = bmSKIP | USB_TMC_EP_OUT;       SYNCDELAY;
      OUTPKTEND = bmSKIP | USB_TMC_EP_OUT;       SYNCDELAY;
      OUTPKTEND = bmSKIP | USB_TMC_EP_OUT;       SYNCDELAY;
      OUTPKTEND = bmSKIP | USB_TMC_EP_OUT;       SYNCDELAY;
      OUTPKTEND = bmSKIP | USB_TMC_EP_OUT;       SYNCDELAY;
      OUTPKTEND = bmSKIP | USB_TMC_EP_OUT;       SYNCDELAY;
 
 
 
      INPKTEND = bmSKIP | USB_TMC_EP_IN;      SYNCDELAY;
 
      INPKTEND = bmSKIP | USB_TMC_EP_IN;      SYNCDELAY;
 
      INPKTEND = bmSKIP | USB_TMC_EP_IN;      SYNCDELAY;
 
      INPKTEND = bmSKIP | USB_TMC_EP_IN;      SYNCDELAY;
 
 
      FIFORESET = 0;                 SYNCDELAY;
      FIFORESET = 0;                 SYNCDELAY;
 
 
 
      EP2CS &= ~bmEPSTALL;
 
      EP6CS &= ~bmEPSTALL;
 
 
      EP0BUF[0] = usb_tmc_status;
      EP0BUF[0] = usb_tmc_status;
      EP0BCH = 0;
      EP0BCH = 0;
      EP0BCL = 1;
      EP0BCL = 1;
 
 
      break;
      break;

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.