On 09.01.2010 20:19, Sean Nelson wrote:
Convert all messages in ft2232_spi.c to the new message infrastructure.
Signed-off-by: Sean Nelson audiohacked@gmail.com diff --git a/ft2232_spi.c b/ft2232_spi.c index 80c6d4e..efc328a 100644 --- a/ft2232_spi.c +++ b/ft2232_spi.c @@ -167,7 +156,7 @@ int ft2232_spi_init(void) #define MPSSE_CLK 12.0
#endif
- printf_debug("Set clock divisor\n");
- msg_pdbg("Set clock divisor\n"); buf[0] = 0x86; /* command "set divisor" */ /* valueL/valueH are (desired_divisor - 1) */ buf[1] = (DIVIDE_BY - 1) & 0xff;
@@ -175,16 +164,16 @@ int ft2232_spi_init(void) if (send_buf(ftdic, buf, 3)) return -1;
- printf("SPI clock is %fMHz\n",
- msg_pinfo("SPI clock is %fMHz\n",
pdbg please
(double)(MPSSE_CLK / (((DIVIDE_BY - 1) + 1) * 2)));
/* Disconnect TDI/DO to TDO/DI for loopback. */
- printf_debug("No loopback of TDI/DO TDO/DI\n");
- msg_pdbg("No loopback of TDI/DO TDO/DI\n"); buf[0] = 0x85; if (send_buf(ftdic, buf, 1)) return -1;
- printf_debug("Set data bits\n");
- msg_pdbg("Set data bits\n"); /* Set data bits low-byte command:
- value: 0x08 CS=high, DI=low, DO=low, SK=low
- dir: 0x0b CS=output, DI=input, DO=output, SK=output
Regards, Carl-Daniel