diff options
author | zwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2009-06-23 22:36:11 +0000 |
---|---|---|
committer | zwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2009-06-23 22:36:11 +0000 |
commit | 50c086ffb94f199c088f4cc52b7887b668dddf00 (patch) | |
tree | f82cbcc5acf534e762fa623923c2b39de0fc07cd /src/flash/stellaris.c | |
parent | e43979e7020ea9d05a3c0a2af444f292eacb6c53 (diff) | |
download | riscv-openocd-50c086ffb94f199c088f4cc52b7887b668dddf00.zip riscv-openocd-50c086ffb94f199c088f4cc52b7887b668dddf00.tar.gz riscv-openocd-50c086ffb94f199c088f4cc52b7887b668dddf00.tar.bz2 |
- Replace 'while(' with 'while ('.
git-svn-id: svn://svn.berlios.de/openocd/trunk@2358 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src/flash/stellaris.c')
-rw-r--r-- | src/flash/stellaris.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/flash/stellaris.c b/src/flash/stellaris.c index 32f6433..e8ee2fb 100644 --- a/src/flash/stellaris.c +++ b/src/flash/stellaris.c @@ -610,7 +610,7 @@ static int stellaris_erase(struct flash_bank_s *bank, int first, int last) { target_read_u32(target, FLASH_FMC, &flash_fmc); } - while(flash_fmc & FMC_ERASE); + while (flash_fmc & FMC_ERASE); /* Check acess violations */ target_read_u32(target, FLASH_CRIS, &flash_cris); @@ -687,7 +687,7 @@ static int stellaris_protect(struct flash_bank_s *bank, int set, int first, int { target_read_u32(target, FLASH_FMC, &flash_fmc); } - while(flash_fmc & FMC_COMT); + while (flash_fmc & FMC_COMT); /* Check acess violations */ target_read_u32(target, FLASH_CRIS, &flash_cris); @@ -926,7 +926,7 @@ static int stellaris_write(struct flash_bank_s *bank, uint8_t *buffer, uint32_t uint8_t last_word[4] = {0xff, 0xff, 0xff, 0xff}; int i = 0; - while(bytes_remaining > 0) + while (bytes_remaining > 0) { last_word[i++] = *(buffer + bytes_written); bytes_remaining--; |