Flip sense of capture clock on SGPIO, which seems to solve the RX data corruption issues. TODO: I wish I had more than empirical evidence that this fix is correct...
This commit is contained in:
@ -262,7 +262,7 @@ void configure_sgpio_test_rx() {
|
|||||||
(0L << 4) | // DATA_CAPTURE_MODE = 0 (detect rising edge)
|
(0L << 4) | // DATA_CAPTURE_MODE = 0 (detect rising edge)
|
||||||
(0L << 3) | // INV_OUT_CLK = X
|
(0L << 3) | // INV_OUT_CLK = X
|
||||||
(1L << 2) | // CLKGEN_MODE = 1 (use external pin clock)
|
(1L << 2) | // CLKGEN_MODE = 1 (use external pin clock)
|
||||||
(0L << 1) | // CLK_CAPTURE_MODE = 0 (use rising clock edge)
|
(1L << 1) | // CLK_CAPTURE_MODE = 1 (use falling clock edge)
|
||||||
(0L << 0); // MATCH_MODE = 0 (do not match data)
|
(0L << 0); // MATCH_MODE = 0 (do not match data)
|
||||||
|
|
||||||
SGPIO_PRESET(SGPIO_SLICE_A) = 0;
|
SGPIO_PRESET(SGPIO_SLICE_A) = 0;
|
||||||
|
Reference in New Issue
Block a user