aboutsummaryrefslogtreecommitdiff
path: root/src/flash
diff options
context:
space:
mode:
authorzwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-06-23 22:39:18 +0000
committerzwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-06-23 22:39:18 +0000
commitd61714f4d5d72f9f39fbccbb1c3ba5f3d8982020 (patch)
tree9da1225902da0c661ac9880f17c30d753d99bc17 /src/flash
parent53d605e12c3765aeedabf2bfe0c5cc338dc95d5a (diff)
downloadriscv-openocd-d61714f4d5d72f9f39fbccbb1c3ba5f3d8982020.zip
riscv-openocd-d61714f4d5d72f9f39fbccbb1c3ba5f3d8982020.tar.gz
riscv-openocd-d61714f4d5d72f9f39fbccbb1c3ba5f3d8982020.tar.bz2
- 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
Diffstat (limited to 'src/flash')
-rw-r--r--src/flash/cfi.c2
-rw-r--r--src/flash/ecos.c2
-rw-r--r--src/flash/mflash.c2
-rw-r--r--src/flash/ocl/at91sam7x/main.c2
-rw-r--r--src/flash/ocl/at91sam7x/samflash.c2
5 files changed, 5 insertions, 5 deletions
diff --git a/src/flash/cfi.c b/src/flash/cfi.c
index f6ddead..1d4ae53 100644
--- a/src/flash/cfi.c
+++ b/src/flash/cfi.c
@@ -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++;
}
}
diff --git a/src/flash/ecos.c b/src/flash/ecos.c
index 5d1badd..ec3b3c1 100644
--- a/src/flash/ecos.c
+++ b/src/flash/ecos.c
@@ -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)
diff --git a/src/flash/mflash.c b/src/flash/mflash.c
index 8518df1..b26e62b 100644
--- a/src/flash/mflash.c
+++ b/src/flash/mflash.c
@@ -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;
diff --git a/src/flash/ocl/at91sam7x/main.c b/src/flash/ocl/at91sam7x/main.c
index 3d88d91..6ecbf35 100644
--- a/src/flash/ocl/at91sam7x/main.c
+++ b/src/flash/ocl/at91sam7x/main.c
@@ -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;
}
diff --git a/src/flash/ocl/at91sam7x/samflash.c b/src/flash/ocl/at91sam7x/samflash.c
index 81c1801..d7c21f7 100644
--- a/src/flash/ocl/at91sam7x/samflash.c
+++ b/src/flash/ocl/at91sam7x/samflash.c
@@ -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;
}