forked from auracaster/openocd
- Fixes '[|]' whitespace
- Replace ')\([|]\)(' with ') \1 ('.
- Replace ')\([|]\)\(\w\)' with ') \1 \2'.
- Replace '\(\w\)\([|]\)(' with '\1 \2 ('.
- Replace '\(\w\)\([|]\)\(\w\)' with '\1 \2 \3'.
git-svn-id: svn://svn.berlios.de/openocd/trunk@2374 b42882b7-edfa-0310-969c-e2dbd0fdcd60
This commit is contained in:
@@ -72,7 +72,7 @@ void cmd_flash(uint32 cmd)
|
||||
/* verify written data */
|
||||
if (!result) result = flash_verify(adr, len, ((uint8 *)buffer) + ofs);
|
||||
|
||||
dcc_wr(OCL_CMD_DONE|result);
|
||||
dcc_wr(OCL_CMD_DONE | result);
|
||||
}
|
||||
|
||||
|
||||
@@ -84,14 +84,14 @@ int main (void)
|
||||
cmd = dcc_rd();
|
||||
switch (cmd&OCL_CMD_MASK) {
|
||||
case OCL_PROBE:
|
||||
dcc_wr(OCL_CMD_DONE|flash_init());
|
||||
dcc_wr(OCL_CMD_DONE | flash_init());
|
||||
dcc_wr(0x100000); /* base */
|
||||
dcc_wr(flash_page_count*flash_page_size); /* size */
|
||||
dcc_wr(1); /* num_sectors */
|
||||
dcc_wr(4096 | ((unsigned long) flash_page_size << 16)); /* buflen and bufalign */
|
||||
break;
|
||||
case OCL_ERASE_ALL:
|
||||
dcc_wr(OCL_CMD_DONE|flash_erase_all());
|
||||
dcc_wr(OCL_CMD_DONE | flash_erase_all());
|
||||
break;
|
||||
case OCL_FLASH_BLOCK:
|
||||
cmd_flash(cmd);
|
||||
|
||||
@@ -164,7 +164,7 @@ int flash_erase_plane(int efc_ofs)
|
||||
if ((inr(MC_FSR + efc_ofs)&MC_LOCKE)) return FLASH_STAT_LOCKE;
|
||||
|
||||
/* set no erase before programming */
|
||||
outr(MC_FMR + efc_ofs, inr(MC_FMR + efc_ofs)|0x80);
|
||||
outr(MC_FMR + efc_ofs, inr(MC_FMR + efc_ofs) | 0x80);
|
||||
|
||||
return FLASH_STAT_OK;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user