]> sigrok.org Git - sigrok-firmware-fx2lafw.git/blobdiff - fx2lafw.c
Corrected EP2FIFOCFG setup
[sigrok-firmware-fx2lafw.git] / fx2lafw.c
index 574e09109b1e7bcc86ce16e6fa1b3619e63e5fb5..e6c79e41a7f7a6db9377376e969866ac699571c7 100644 (file)
--- 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). */
@@ -234,7 +235,7 @@ void fx2lafw_init(void)
        gpif_init_la();
 }
 
-void fx2lafw_run(void)
+void fx2lafw_poll(void)
 {
        if (got_sud) {
                handle_setupdata();