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.
This commit is contained in:
parent
232a975fe2
commit
ce35b282de
|
@ -62,9 +62,11 @@
|
||||||
#define CMD_START 0xb1
|
#define CMD_START 0xb1
|
||||||
#define CMD_GET_REVID_VERSION 0xb2
|
#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_WIDE_POS 5
|
||||||
#define CMD_START_FLAGS_CLK_SRC_POS 6
|
#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_8BIT (0 << CMD_START_FLAGS_WIDE_POS)
|
||||||
#define CMD_START_FLAGS_SAMPLE_16BIT (1 << CMD_START_FLAGS_WIDE_POS)
|
#define CMD_START_FLAGS_SAMPLE_16BIT (1 << CMD_START_FLAGS_WIDE_POS)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue