From: Joel Holdsworth Date: Sun, 24 Apr 2016 18:38:12 +0000 (+0200) Subject: fx2lafw: Add CTL2 clocking command flag to header X-Git-Tag: libsigrok-0.5.0~488 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=ce35b282de2d02d822fcd78a4296e029da48d362;p=libsigrok.git fx2lafw: Add CTL2 clocking command flag to header The USBee AX hardware needs a sampling clock that is lower than the 30MHz or 48MHz that the FX2 has to offer. This flag will enable clocking via the CTL2 pin that is an even divisor of the main clock. --- diff --git a/src/hardware/fx2lafw/protocol.h b/src/hardware/fx2lafw/protocol.h index f1a93f99..50e0ea4b 100644 --- a/src/hardware/fx2lafw/protocol.h +++ b/src/hardware/fx2lafw/protocol.h @@ -62,9 +62,11 @@ #define CMD_START 0xb1 #define CMD_GET_REVID_VERSION 0xb2 +#define CMD_START_FLAGS_CLK_CTL2_POS 4 #define CMD_START_FLAGS_WIDE_POS 5 #define CMD_START_FLAGS_CLK_SRC_POS 6 +#define CMD_START_FLAGS_CLK_CTL2 (1 << CMD_START_FLAGS_CLK_CTL2) #define CMD_START_FLAGS_SAMPLE_8BIT (0 << CMD_START_FLAGS_WIDE_POS) #define CMD_START_FLAGS_SAMPLE_16BIT (1 << CMD_START_FLAGS_WIDE_POS)