David Brownell <david-b@pacbell.net>:

Remove broken whitespace ... mostly at end of line, but
also in some cases blocks of inappropriate empty lines.

And spell "comamnd" right. :)


git-svn-id: svn://svn.berlios.de/openocd/trunk@1972 b42882b7-edfa-0310-969c-e2dbd0fdcd60
This commit is contained in:
zwelch 2009-06-01 03:05:26 +00:00
parent 74df79d4d8
commit 278ca633da
7 changed files with 505 additions and 578 deletions

View File

@ -230,9 +230,9 @@ static void lpc288x_set_flash_clk(struct flash_bank_s *bank)
/* AHB tcyc (in ns) 83 ns
* LOAD_TIMER_ERASE FPT_TIME = ((400,000,000 / AHB tcyc (in ns)) - 2) / 512
* = 9412 (9500) (AN10548 9375)
* = 9412 (9500) (AN10548 9375)
* LOAD_TIMER_WRITE FPT_TIME = ((1,000,000 / AHB tcyc (in ns)) - 2) / 512
* = 23 (75) (AN10548 72 - is this wrong?)
* = 23 (75) (AN10548 72 - is this wrong?)
* TODO: Sort out timing calcs ;) */
static void lpc288x_load_timer(int erase, struct target_s *target)
{

View File

@ -616,7 +616,7 @@ static int str9x_write(struct flash_bank_s *bank,
bank_adr = address & ~0x03;
/* write data comamnd */
/* write data command */
target_write_u16(target, bank_adr, 0x40);
target_write_memory(target, address, 2, 1, last_halfword);

View File

@ -113,13 +113,8 @@ int str9xpec_set_instr(jtag_tap_t *tap, u32 new_instr, tap_state_t end_state)
field.num_bits = tap->ir_length;
field.out_value = calloc(CEIL(field.num_bits, 8), 1);
buf_set_u32(field.out_value, 0, field.num_bits, new_instr);
field.in_value = NULL;
jtag_add_ir_scan(1, &field, end_state);
free(field.out_value);
@ -139,13 +134,9 @@ static u8 str9xpec_isc_status(jtag_tap_t *tap)
field.tap = tap;
field.num_bits = 8;
field.out_value = NULL;
field.in_value = &status;
jtag_add_dr_scan(1, &field, TAP_IDLE);
jtag_execute_queue();
@ -231,13 +222,9 @@ static int str9xpec_read_config(struct flash_bank_s *bank)
field.tap = tap;
field.num_bits = 64;
field.out_value = NULL;
field.in_value = str9xpec_info->options;
jtag_add_dr_scan(1, &field, TAP_IDLE);
jtag_execute_queue();
@ -383,13 +370,8 @@ static int str9xpec_blank_check(struct flash_bank_s *bank, int first, int last)
field.tap = tap;
field.num_bits = 64;
field.out_value = buffer;
field.in_value = NULL;
jtag_add_dr_scan(1, &field, TAP_IDLE);
jtag_add_sleep(40000);
@ -397,13 +379,8 @@ static int str9xpec_blank_check(struct flash_bank_s *bank, int first, int last)
field.tap = tap;
field.num_bits = 64;
field.out_value = NULL;
field.in_value = buffer;
jtag_add_dr_scan(1, &field, TAP_IRPAUSE);
jtag_execute_queue();
@ -499,13 +476,8 @@ static int str9xpec_erase_area(struct flash_bank_s *bank, int first, int last)
field.tap = tap;
field.num_bits = 64;
field.out_value = buffer;
field.in_value = NULL;
jtag_add_dr_scan(1, &field, TAP_IDLE);
jtag_execute_queue();
@ -565,13 +537,8 @@ static int str9xpec_lock_device(struct flash_bank_s *bank)
field.tap = tap;
field.num_bits = 8;
field.out_value = NULL;
field.in_value = &status;
jtag_add_dr_scan(1, &field, TAP_INVALID);
jtag_execute_queue();
@ -651,13 +618,8 @@ static int str9xpec_set_address(struct flash_bank_s *bank, u8 sector)
field.tap = tap;
field.num_bits = 8;
field.out_value = &sector;
field.in_value = NULL;
jtag_add_dr_scan(1, &field, TAP_INVALID);
return ERROR_OK;
@ -740,13 +702,8 @@ static int str9xpec_write(struct flash_bank_s *bank, u8 *buffer, u32 offset, u32
field.tap = tap;
field.num_bits = 64;
field.out_value = (buffer + bytes_written);
field.in_value = NULL;
jtag_add_dr_scan(1, &field, TAP_IDLE);
/* small delay before polling */
@ -758,13 +715,8 @@ static int str9xpec_write(struct flash_bank_s *bank, u8 *buffer, u32 offset, u32
field.tap = tap;
field.num_bits = 8;
field.out_value = NULL;
field.in_value = scanbuf;
jtag_add_dr_scan(1, &field, TAP_INVALID);
jtag_execute_queue();
@ -800,13 +752,8 @@ static int str9xpec_write(struct flash_bank_s *bank, u8 *buffer, u32 offset, u32
field.tap = tap;
field.num_bits = 64;
field.out_value = last_dword;
field.in_value = NULL;
jtag_add_dr_scan(1, &field, TAP_IDLE);
/* small delay before polling */
@ -818,13 +765,8 @@ static int str9xpec_write(struct flash_bank_s *bank, u8 *buffer, u32 offset, u32
field.tap = tap;
field.num_bits = 8;
field.out_value = NULL;
field.in_value = scanbuf;
jtag_add_dr_scan(1, &field, TAP_INVALID);
jtag_execute_queue();
@ -882,13 +824,8 @@ static int str9xpec_handle_part_id_command(struct command_context_s *cmd_ctx, ch
field.tap = tap;
field.num_bits = 32;
field.out_value = NULL;
field.in_value = buffer;
jtag_add_dr_scan(1, &field, TAP_IDLE);
jtag_execute_queue();
@ -1007,13 +944,8 @@ static int str9xpec_write_options(struct flash_bank_s *bank)
field.tap = tap;
field.num_bits = 64;
field.out_value = str9xpec_info->options;
field.in_value = NULL;
jtag_add_dr_scan(1, &field, TAP_IDLE);
/* small delay before polling */
@ -1025,13 +957,8 @@ static int str9xpec_write_options(struct flash_bank_s *bank)
field.tap = tap;
field.num_bits = 8;
field.out_value = NULL;
field.in_value = &status;
jtag_add_dr_scan(1, &field, TAP_INVALID);
jtag_execute_queue();