- Fixes '<<' whitespace
[openocd.git] / src / flash / ocl / at91sam7x / main.c
index 2a4d28bba977dc22669849fc396e862a8a957b7c..b49a5b894a162869f34fa34855131f027d1feab2 100644 (file)
@@ -53,7 +53,7 @@ void cmd_flash(uint32 cmd)
        chksum=OCL_CHKS_INIT;
        for (bi=0; bi<bi_end; bi++) chksum^=buffer[bi]=dcc_rd();
 
-       if (dcc_rd()!=chksum) {
+       if (dcc_rd() != chksum) {
                dcc_wr(OCL_CHKS_FAIL);
                return;
        }
@@ -64,7 +64,7 @@ void cmd_flash(uint32 cmd)
 
        result=0;
        pagenum=adr/flash_page_size;
-       for (bi=0; bi<bi_end; bi+=flash_page_size/4) {
+       for (bi=0; bi<bi_end; bi += flash_page_size/4) {
                result=flash_page_program(buffer+bi, pagenum++);
                if (result) break;
        }
@@ -88,7 +88,7 @@ int main (void)
                                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 */
+                               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());

Linking to existing account procedure

If you already have an account and want to add another login method you MUST first sign in with your existing account and then change URL to read https://review.openocd.org/login/?link to get to this page again but this time it'll work for linking. Thank you.

SSH host keys fingerprints

1024 SHA256:YKx8b7u5ZWdcbp7/4AeXNaqElP49m6QrwfXaqQGJAOk gerrit-code-review@openocd.zylin.com (DSA)
384 SHA256:jHIbSQa4REvwCFG4cq5LBlBLxmxSqelQPem/EXIrxjk gerrit-code-review@openocd.org (ECDSA)
521 SHA256:UAOPYkU9Fjtcao0Ul/Rrlnj/OsQvt+pgdYSZ4jOYdgs gerrit-code-review@openocd.org (ECDSA)
256 SHA256:A13M5QlnozFOvTllybRZH6vm7iSt0XLxbA48yfc2yfY gerrit-code-review@openocd.org (ECDSA)
256 SHA256:spYMBqEYoAOtK7yZBrcwE8ZpYt6b68Cfh9yEVetvbXg gerrit-code-review@openocd.org (ED25519)
+--[ED25519 256]--+
|=..              |
|+o..   .         |
|*.o   . .        |
|+B . . .         |
|Bo. = o S        |
|Oo.+ + =         |
|oB=.* = . o      |
| =+=.+   + E     |
|. .=o   . o      |
+----[SHA256]-----+
2048 SHA256:0Onrb7/PHjpo6iVZ7xQX2riKN83FJ3KGU0TvI0TaFG4 gerrit-code-review@openocd.zylin.com (RSA)