- /* Disable all other EPs (EP1, EP4, EP6, and EP8). */
+ /* Setup EP6 (IN) in the debug build. */
+#ifdef DEBUG
+ EP6CFG = (1 << 7) | /* EP is valid/activated */
+ (1 << 6) | /* EP direction: IN */
+ (1 << 5) | (0 << 4) | /* EP Type: bulk */
+ (0 << 3) | /* EP buffer size: 512 */
+ (0 << 2) | /* Reserved */
+ (1 << 1) | (0 << 0); /* EP buffering: double buffering */
+#else
+ EP6CFG &= ~bmVALID;
+#endif
+ SYNCDELAY();
+
+ /* Disable all other EPs (EP4 and EP8). */