From: Joel Holdsworth Date: Sat, 10 Mar 2012 22:46:25 +0000 (+0000) Subject: Corrected EP2FIFOCFG setup X-Git-Tag: sigrok-firmware-fx2lafw-0.1.0~49 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=2d62ae473486c48c3922c7eb644cc96b428d46b2;p=sigrok-firmware-fx2lafw.git Corrected EP2FIFOCFG setup --- diff --git a/fx2lafw.c b/fx2lafw.c index 034d5ba4..e6c79e41 100644 --- a/fx2lafw.c +++ b/fx2lafw.c @@ -90,13 +90,14 @@ static void setup_endpoints(void) /* EP2: Reset the FIFOs. */ /* Note: RESETFIFO() gets the EP number WITHOUT bit 7 set/cleared. */ RESETFIFO(0x02) + #ifdef DEBUG /* Reset the FIFOs of EP6 when in debug mode. */ RESETFIFO(0x06) #endif /* EP2: Enable AUTOIN mode. Set FIFO width to 8bits. */ - EP2FIFOCFG = bmAUTOIN | ~bmWORDWIDE; + EP2FIFOCFG = bmAUTOIN; SYNCDELAY(); /* EP2: Auto-commit 512 (0x200) byte packets (due to AUTOIN = 1). */