diff options
author | zwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2009-06-23 22:39:18 +0000 |
---|---|---|
committer | zwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2009-06-23 22:39:18 +0000 |
commit | d61714f4d5d72f9f39fbccbb1c3ba5f3d8982020 (patch) | |
tree | 9da1225902da0c661ac9880f17c30d753d99bc17 /src/flash/ocl | |
parent | 53d605e12c3765aeedabf2bfe0c5cc338dc95d5a (diff) | |
download | openocd_libswd-d61714f4d5d72f9f39fbccbb1c3ba5f3d8982020.tar.gz openocd_libswd-d61714f4d5d72f9f39fbccbb1c3ba5f3d8982020.tar.bz2 openocd_libswd-d61714f4d5d72f9f39fbccbb1c3ba5f3d8982020.tar.xz openocd_libswd-d61714f4d5d72f9f39fbccbb1c3ba5f3d8982020.zip |
- 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/ocl')
-rw-r--r-- | src/flash/ocl/at91sam7x/main.c | 2 | ||||
-rw-r--r-- | src/flash/ocl/at91sam7x/samflash.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/flash/ocl/at91sam7x/main.c b/src/flash/ocl/at91sam7x/main.c index 3d88d91a..6ecbf35a 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 81c1801d..d7c21f72 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; } |