- Replace 'do{' with 'do {'.
- Replace '}while' with '} while'.
---
 avrf.c    |    8 ++++----
 lpc288x.c |    2 +-
 2 files changed, 5 insertions(+), 5 deletions(-)
- Replace 'do{' with 'do {'.
- Replace '}while' with '} while'.
---
 avrf.c    |    8 ++++----
 lpc288x.c |    2 +-
 2 files changed, 5 insertions(+), 5 deletions(-)
======
diff -u src/flash/avrf.c src/flash/avrf.c
--- src/flash/avrf.c	(working copy)
+++ src/flash/avrf.c	(working copy)
@@ -148,7 +148,7 @@
 	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 @@
 			return ERROR_FAIL;
 		}
 		LOG_DEBUG("poll_value = 0x%04X", poll_value);
-	}while (!(poll_value & 0x0200));
+	} while (!(poll_value & 0x0200));
 
 	return ERROR_OK;
 }
@@ -195,7 +195,7 @@
 	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 @@
 			return ERROR_FAIL;
 		}
 		LOG_DEBUG("poll_value = 0x%04X", poll_value);
-	}while (!(poll_value & 0x0200));
+	} while (!(poll_value & 0x0200));
 
 	return ERROR_OK;
 }
diff -u src/flash/lpc288x.c src/flash/lpc288x.c
--- src/flash/lpc288x.c	(working copy)
+++ src/flash/lpc288x.c	(working copy)
@@ -127,7 +127,7 @@
 		alive_sleep(1);
 		timeout--;
 		target_read_u32(target, F_STAT, &status);
-	}while (((status & FS_DONE) == 0) && timeout);
+	} while (((status & FS_DONE) == 0) && timeout);
 
 	if (timeout == 0)
 	{
_______________________________________________
Openocd-development mailing list
Openocd-development@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to