URL
https://opencores.org/ocsvn/gecko3/gecko3/trunk
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 9 |
Rev 17 |
Line 98... |
Line 98... |
/* FIFORESET = 4; SYNCDELAY; */
|
/* FIFORESET = 4; SYNCDELAY; */
|
FIFORESET = 6; SYNCDELAY;
|
FIFORESET = 6; SYNCDELAY;
|
/* FIFORESET = 8; SYNCDELAY; */
|
/* FIFORESET = 8; SYNCDELAY; */
|
FIFORESET = 0; SYNCDELAY;
|
FIFORESET = 0; SYNCDELAY;
|
|
|
/* configure end point FIFOs */
|
|
|
|
/* let core see 0 to 1 transistion of autoout bit */
|
|
|
|
EP2FIFOCFG = bmWORDWIDE; SYNCDELAY;
|
|
EP6FIFOCFG = bmWORDWIDE; SYNCDELAY;
|
|
|
|
|
|
|
|
/* prime the pump */
|
/* prime the pump */
|
EP0BCH = 0; SYNCDELAY;
|
EP0BCH = 0; SYNCDELAY;
|
EP0BCL = 0; SYNCDELAY;
|
EP0BCL = 0; SYNCDELAY;
|
OUTPKTEND = bmSKIP | 2; SYNCDELAY; /* because we use quad buffering we have to flush all for buffers before use */
|
OUTPKTEND = bmSKIP | 2; SYNCDELAY; /* because we use quad buffering */
|
OUTPKTEND = bmSKIP | 2; SYNCDELAY;
|
OUTPKTEND = bmSKIP | 2; SYNCDELAY; /* we have to flush all for */
|
OUTPKTEND = bmSKIP | 2; SYNCDELAY;
|
OUTPKTEND = bmSKIP | 2; SYNCDELAY; /* buffers before use */
|
OUTPKTEND = bmSKIP | 2; SYNCDELAY;
|
OUTPKTEND = bmSKIP | 2; SYNCDELAY;
|
|
|
|
/* configure end point FIFOs */
|
|
EP2FIFOCFG = bmWORDWIDE; SYNCDELAY;
|
|
EP6FIFOCFG = bmWORDWIDE; SYNCDELAY;
|
|
|
|
|
|
|
/* set autoout length for EP2 and autoin length for EP6 */
|
/* set autoout length for EP2 and autoin length for EP6 */
|
if(USBCS & bmHSM){
|
if(USBCS & bmHSM){
|
EP6AUTOINLENH = (512) >> 8; SYNCDELAY; /* this is the length for high speed */
|
EP6AUTOINLENH = (512) >> 8; SYNCDELAY; /* this is the length for high speed */
|
EP6AUTOINLENL = (512) & 0xff; SYNCDELAY;
|
EP6AUTOINLENL = (512) & 0xff; SYNCDELAY;
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.