- restored tabs and formatting

git-svn-id: svn://svn.berlios.de/openocd/trunk@657 b42882b7-edfa-0310-969c-e2dbd0fdcd60
This commit is contained in:
ntfreak 2008-05-12 09:01:38 +00:00
parent 342d77e881
commit f1e72cf029
3 changed files with 104 additions and 115 deletions

View File

@ -153,15 +153,11 @@ static int ft2232_expect_read = 0;
jtag_interface_t ft2232_interface =
{
.name = "ft2232",
.execute_queue = ft2232_execute_queue,
.speed = ft2232_speed,
.speed_div = ft2232_speed_div,
.khz = ft2232_khz,
.register_commands = ft2232_register_commands,
.init = ft2232_init,
.quit = ft2232_quit,
@ -266,11 +262,10 @@ int ft2232_speed(int speed)
int ft2232_speed_div(int speed, int *khz)
{
/*
* Take a look in the FT2232 manual,
/* Take a look in the FT2232 manual,
* AN2232C-01 Command Processor for
* MPSSE and MCU Host Bus. Chapter 3.8
*/
* MPSSE and MCU Host Bus. Chapter 3.8 */
*khz = 6000 / (1+speed);
return ERROR_OK;
@ -278,14 +273,12 @@ int ft2232_speed_div(int speed, int *khz)
int ft2232_khz(int khz, int *jtag_speed)
{
/*
* Take a look in the FT2232 manual,
/* Take a look in the FT2232 manual,
* AN2232C-01 Command Processor for
* MPSSE and MCU Host Bus. Chapter 3.8
*
* We will calc here with a multiplier
* of 10 for better rounding later.
*/
* of 10 for better rounding later. */
/* Calc speed, (6000 / khz) - 1 */
/* Use 65000 for better rounding */
@ -306,8 +299,6 @@ int ft2232_khz(int khz, int *jtag_speed)
return ERROR_OK;
}
int ft2232_register_commands(struct command_context_s *cmd_ctx)
{
register_command(cmd_ctx, NULL, "ft2232_device_desc", ft2232_handle_device_desc_command,
@ -2076,7 +2067,6 @@ void turtle_jtag_blink(void)
BUFFER_ADD = high_direction;
}
int ft2232_quit(void)
{
#if BUILD_FT2232_FTD2XX == 1
@ -2178,5 +2168,3 @@ int ft2232_handle_latency_command(struct command_context_s *cmd_ctx, char *cmd,
return ERROR_OK;
}

View File

@ -33,3 +33,4 @@ nobase_dist_pkglib_DATA = xscale/debug_handler.bin event/at91eb40a_reset.script
interface/calao-usb-a9260-c01.cfg interface/calao-usb-a9260-c02.cfg \
interface/calao-usb-a9260.cfg target/at91sam9260minimal.cfg event/lpc2148_reset.script \
interface/chameleon.cfg interface/at91rm9200.cfg