From: Joel Holdsworth Date: Sun, 11 Mar 2012 14:38:59 +0000 (+0000) Subject: Specify that one transaction will occur in each acquisition X-Git-Tag: sigrok-firmware-fx2lafw-0.1.0~48 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=1e588d0627db7ba16458be72aba6961747b6a4d6;p=sigrok-firmware-fx2lafw.git Specify that one transaction will occur in each acquisition --- diff --git a/gpif-acquisition.c b/gpif-acquisition.c index a597a86d..89ef85d4 100644 --- a/gpif-acquisition.c +++ b/gpif-acquisition.c @@ -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); }