]> sigrok.org Git - sigrok-firmware-fx2lafw.git/commitdiff
Specify that one transaction will occur in each acquisition
authorJoel Holdsworth <redacted>
Sun, 11 Mar 2012 14:38:59 +0000 (14:38 +0000)
committerJoel Holdsworth <redacted>
Sun, 11 Mar 2012 14:38:59 +0000 (14:38 +0000)
gpif-acquisition.c

index a597a86dcb312661ba6db6b4459ac15ec30f6f14..89ef85d4ae38fe7ec006b03078b8d219bdf5d087 100644 (file)
@@ -68,6 +68,9 @@ static void gpif_setup_registers(void)
 
        /* Contains RDY* pin values. Read-only according to TRM. */
        GPIFREADYSTAT = 0;
+
+       /* Make GPIF stop on transcation count not flag */
+       EP2GPIFPFSTOP = (0 << 0);
 }
 
 static void gpif_init_addr_pins(void)
@@ -187,6 +190,9 @@ void gpif_acquisition_start(const struct cmd_start_acquisition *cmd)
 
        SYNCDELAY();
 
+       /* Execute the whole GPIF waveform once */
+       gpif_set_tc16(1);
+
        /* Perform the initial GPIF read. */
        gpif_fifo_read(GPIF_EP2);
 }