- /* endpoint configuration:
- *
- * ep2: bulk in 4x512
- * ep6: bulk out 4x512
- *
- * 0xa0 = 1 0 1 0 0 0 0 0 = bulk out 4x512
- * 0xe0 = 1 1 1 0 0 0 0 0 = bulk in 4x512
- * 0x01 = 0 0 0 0 0 0 0 1 = invalid (bit,type,buf)
- */
- EP2CFG=0xa0;
- SYNCDELAY;
- EP4CFG=0x01;
- SYNCDELAY;
- EP6CFG=0xe0;
- SYNCDELAY;
- EP8CFG=0x01;
- SYNCDELAY;
-
- /* reset the fifo */
- FIFORESET=0x80; /* nak all transfers */
- SYNCDELAY;
- FIFORESET=0x02; /* reset ep2 */
- SYNCDELAY;
- FIFORESET=0x06; /* reset ep6 */
- SYNCDELAY;
- FIFORESET=0x00; /* restore normal operation */
- SYNCDELAY;
-