]> sigrok.org Git - libsigrok.git/commitdiff
fx2lafw: Add CTL2 clocking command flag to header
authorJoel Holdsworth <redacted>
Sun, 24 Apr 2016 18:38:12 +0000 (20:38 +0200)
committerUwe Hermann <redacted>
Wed, 27 Apr 2016 20:29:16 +0000 (22:29 +0200)
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.

src/hardware/fx2lafw/protocol.h

index f1a93f99ecd560488336bc2887c8109065240e69..50e0ea4bf75e3994f35ae7a7d675da9d06611f67 100644 (file)
 #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)