Add get and set accessors for jtag_speed:
- Setter calls the interface driver callback to improve core encapsulation. - Use getter in standard JTAG interface drivers and ZY1000 minidriver. git-svn-id: svn://svn.berlios.de/openocd/trunk@2159 b42882b7-edfa-0310-969c-e2dbd0fdcd60
This commit is contained in:
@@ -2099,7 +2099,7 @@ static int ft2232_init(void)
|
||||
if (layout->init() != ERROR_OK)
|
||||
return ERROR_JTAG_INIT_FAILED;
|
||||
|
||||
ft2232_speed(jtag_speed);
|
||||
ft2232_speed(jtag_get_speed());
|
||||
|
||||
buf[0] = 0x85; /* Disconnect TDI/DO to TDO/DI for Loopback */
|
||||
if (((retval = ft2232_write(buf, 1, &bytes_written)) != ERROR_OK) || (bytes_written != 1))
|
||||
|
||||
Reference in New Issue
Block a user