- Fixes '[+]=' whitespace
- Replace '\(\w\)\([+]=\)(' with '\1 \2 ('.
- Replace '\(\w\)\([+]=\)\(\w\)' with '\1 \2 \3'.
git-svn-id: svn://svn.berlios.de/openocd/trunk@2364 b42882b7-edfa-0310-969c-e2dbd0fdcd60
This commit is contained in:
@@ -1014,7 +1014,7 @@ static void cfi_fix_code_endian(target_t *target, uint8_t *dest, const uint32_t
|
||||
for (i=0; i< count; i++)
|
||||
{
|
||||
target_buffer_set_u32(target, dest, *src);
|
||||
dest+=4;
|
||||
dest += 4;
|
||||
src++;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -319,7 +319,7 @@ static int eCosBoard_flash(ecosflash_flash_bank_t *info, void *data, uint32_t ad
|
||||
|
||||
|
||||
uint32_t i;
|
||||
for (i=0; i<len; i+=chunk)
|
||||
for (i=0; i<len; i += chunk)
|
||||
{
|
||||
int t=len-i;
|
||||
if (t>chunk)
|
||||
|
||||
@@ -278,7 +278,7 @@ static int mg_dsk_wait(mg_io_type_wait wait, uint32_t time)
|
||||
duration_stop_measure(&duration, NULL);
|
||||
|
||||
t=duration.duration.tv_usec/1000;
|
||||
t+=duration.duration.tv_sec*1000;
|
||||
t += duration.duration.tv_sec*1000;
|
||||
|
||||
if (t > time)
|
||||
break;
|
||||
|
||||
@@ -64,7 +64,7 @@ void cmd_flash(uint32 cmd)
|
||||
|
||||
result=0;
|
||||
pagenum=adr/flash_page_size;
|
||||
for (bi=0; bi<bi_end; bi+=flash_page_size/4) {
|
||||
for (bi=0; bi<bi_end; bi += flash_page_size/4) {
|
||||
result=flash_page_program(buffer+bi, pagenum++);
|
||||
if (result) break;
|
||||
}
|
||||
|
||||
@@ -146,7 +146,7 @@ int flash_erase_plane(int efc_ofs)
|
||||
if ((inr(MC_FSR+efc_ofs)&MC_LOCKE)) return FLASH_STAT_LOCKE;
|
||||
|
||||
}
|
||||
if ((page_num+=flash_lock_pages)>flash_page_count) break;
|
||||
if ((page_num += flash_lock_pages)>flash_page_count) break;
|
||||
lockbits>>=1;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user