diff options
author | zwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2009-06-01 03:05:26 +0000 |
---|---|---|
committer | zwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2009-06-01 03:05:26 +0000 |
commit | 278ca633da5c7c2d1979129d7db912b1f4784d98 (patch) | |
tree | 4d6401ae0c2ff790d6b537c2bf5b2ba81893350c /src/flash/ocl.c | |
parent | 74df79d4d86b503118ec904f72549ac3e9a8e469 (diff) |
David Brownell <david-b@pacbell.net>:
Remove broken whitespace ... mostly at end of line, but
also in some cases blocks of inappropriate empty lines.
And spell "comamnd" right. :)
git-svn-id: svn://svn.berlios.de/openocd/trunk@1972 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src/flash/ocl.c')
-rw-r--r-- | src/flash/ocl.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/flash/ocl.c b/src/flash/ocl.c index e2099a11..b9028b1e 100644 --- a/src/flash/ocl.c +++ b/src/flash/ocl.c @@ -108,13 +108,13 @@ static int ocl_erase(struct flash_bank_s *bank, int first, int last) /* check preconditions */ if (bank->num_sectors == 0) return ERROR_FLASH_BANK_NOT_PROBED; - + if (bank->target->state != TARGET_RUNNING) { LOG_ERROR("target has to be running to communicate with the loader"); return ERROR_TARGET_NOT_RUNNING; } - + if ((first == 0) && (last == bank->num_sectors - 1)) { dcc_buffer[0] = OCL_ERASE_ALL; @@ -168,7 +168,7 @@ static int ocl_write(struct flash_bank_s *bank, u8 *buffer, u32 offset, u32 coun int byteofs; int runlen; u32 chksum; - + int i; /* check preconditions */ @@ -227,7 +227,7 @@ static int ocl_write(struct flash_bank_s *bank, u8 *buffer, u32 offset, u32 coun chksum ^= *(dcc_bufptr++); *(dcc_bufptr++) = chksum; - + /* send the data */ if ((retval = embeddedice_send(ocl->jtag_info, dcc_buffer, dcc_bufptr-dcc_buffer)) != ERROR_OK) { @@ -292,7 +292,7 @@ static int ocl_probe(struct flash_bank_s *bank) /* receive response */ if ((retval = embeddedice_receive(ocl->jtag_info, dcc_buffer, 1) != ERROR_OK)) return retval; - + if (dcc_buffer[0] != OCL_CMD_DONE) { LOG_ERROR("loader response to OCL_PROBE 0x%08X", dcc_buffer[0]); |