]> sigrok.org Git - sigrok-firmware-fx2lafw.git/commitdiff
fx2lafw: clock CTL1 the same as CTL2
authorBenjamin Larsson <redacted>
Wed, 18 May 2016 20:50:06 +0000 (22:50 +0200)
committerUwe Hermann <redacted>
Wed, 18 May 2016 21:37:16 +0000 (23:37 +0200)
The LHT00SU1 has it's clock pins swapped compared to other hardware.
By duplicating the CTL2 pin both the socket and the adc will
have the same clock frequency.

gpif-acquisition.c

index b05f4f3cd7b39a4500bc7ee23f7b970e45e4f705..17a87b9e968a0bd91324f4073da0fed95e44ddf2 100644 (file)
@@ -226,7 +226,7 @@ bool gpif_acquisition_start(const struct cmd_start_acquisition *cmd)
                delay_1 = cmd->sample_delay_l - delay_2;
 
                gpif_make_delay_state(pSTATE++, delay_2, 0x00, 0x40);
                delay_1 = cmd->sample_delay_l - delay_2;
 
                gpif_make_delay_state(pSTATE++, delay_2, 0x00, 0x40);
-               gpif_make_delay_state(pSTATE++, delay_1, 0x00, 0x44);
+               gpif_make_delay_state(pSTATE++, delay_1, 0x00, 0x46);
        } else {
                /* Populate delay states. */
                if ((cmd->sample_delay_h == 0 && cmd->sample_delay_l == 0) ||
        } else {
                /* Populate delay states. */
                if ((cmd->sample_delay_h == 0 && cmd->sample_delay_l == 0) ||