aboutsummaryrefslogtreecommitdiff
path: root/src/flash/avrf.c
diff options
context:
space:
mode:
authorzwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-06-23 22:37:49 +0000
committerzwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-06-23 22:37:49 +0000
commit0ab650293add8da2f4d58fd90c17d452312a8a9d (patch)
tree91c1d20eb2c846acd533c42e9b821ae8088ea3ed /src/flash/avrf.c
parent95d2a2372421aeddae01f1af51279ab7989e46b5 (diff)
downloadriscv-openocd-0ab650293add8da2f4d58fd90c17d452312a8a9d.zip
riscv-openocd-0ab650293add8da2f4d58fd90c17d452312a8a9d.tar.gz
riscv-openocd-0ab650293add8da2f4d58fd90c17d452312a8a9d.tar.bz2
- Replace 'do{' with 'do {'.
- Replace '}while' with '} while'. git-svn-id: svn://svn.berlios.de/openocd/trunk@2361 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src/flash/avrf.c')
-rw-r--r--src/flash/avrf.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/flash/avrf.c b/src/flash/avrf.c
index e4012da..dd964e6 100644
--- a/src/flash/avrf.c
+++ b/src/flash/avrf.c
@@ -148,7 +148,7 @@ static int avr_jtagprg_chiperase(avr_common_t *avr)
avr_jtag_senddat(avr->jtag_info.tap, NULL, 0x3380, AVR_JTAG_REG_ProgrammingCommand_Len);
avr_jtag_senddat(avr->jtag_info.tap, NULL, 0x3380, AVR_JTAG_REG_ProgrammingCommand_Len);
- do{
+ do {
poll_value = 0;
avr_jtag_senddat(avr->jtag_info.tap, &poll_value, 0x3380, AVR_JTAG_REG_ProgrammingCommand_Len);
if (ERROR_OK != mcu_execute_queue())
@@ -156,7 +156,7 @@ static int avr_jtagprg_chiperase(avr_common_t *avr)
return ERROR_FAIL;
}
LOG_DEBUG("poll_value = 0x%04" PRIx32 "", poll_value);
- }while (!(poll_value & 0x0200));
+ } while (!(poll_value & 0x0200));
return ERROR_OK;
}
@@ -195,7 +195,7 @@ static int avr_jtagprg_writeflashpage(avr_common_t *avr, uint8_t *page_buf, uint
avr_jtag_senddat(avr->jtag_info.tap, NULL, 0x3700, AVR_JTAG_REG_ProgrammingCommand_Len);
avr_jtag_senddat(avr->jtag_info.tap, NULL, 0x3700, AVR_JTAG_REG_ProgrammingCommand_Len);
- do{
+ do {
poll_value = 0;
avr_jtag_senddat(avr->jtag_info.tap, &poll_value, 0x3700, AVR_JTAG_REG_ProgrammingCommand_Len);
if (ERROR_OK != mcu_execute_queue())
@@ -203,7 +203,7 @@ static int avr_jtagprg_writeflashpage(avr_common_t *avr, uint8_t *page_buf, uint
return ERROR_FAIL;
}
LOG_DEBUG("poll_value = 0x%04" PRIx32 "", poll_value);
- }while (!(poll_value & 0x0200));
+ } while (!(poll_value & 0x0200));
return ERROR_OK;
}