- added svn props for newly added files
[openocd.git] / src / flash / ocl / at91sam7x / dcc.c
index 2c35236961b3ff7e219e1f1b9277507ff6cb2612..3507bbe5eaaa6e8dfed8807a981f1ae25a8c4ff0 100644 (file)
@@ -1,51 +1,51 @@
-/***************************************************************************\r
- *   Copyright (C) 2007 by Pavel Chromy                                    *\r
- *   chromy@asix.cz                                                        *\r
- *                                                                         *\r
- *   This program is free software; you can redistribute it and/or modify  *\r
- *   it under the terms of the GNU General Public License as published by  *\r
- *   the Free Software Foundation; either version 2 of the License, or     *\r
- *   (at your option) any later version.                                   *\r
- *                                                                         *\r
- *   This program is distributed in the hope that it will be useful,       *\r
- *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *\r
- *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *\r
- *   GNU General Public License for more details.                          *\r
- *                                                                         *\r
- *   You should have received a copy of the GNU General Public License     *\r
- *   along with this program; if not, write to the                         *\r
- *   Free Software Foundation, Inc.,                                       *\r
- *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *\r
- ***************************************************************************/\r
-#include "dcc.h"\r
-\r
-\r
-/* debug channel read (debugger->MCU) */\r
-uint32 dcc_rd(void)\r
-{\r
-       volatile uint32 dcc_reg;\r
-\r
-       do {\r
-               asm volatile ("mrc p14, 0, %0, C0, C0" : "=r" (dcc_reg) : );\r
-       } while ((dcc_reg&1)==0);\r
-\r
-       asm volatile ("mrc p14, 0, %0, C1, C0" : "=r" (dcc_reg) : );\r
-       return dcc_reg;\r
-}\r
-\r
-\r
-/* debug channel write (MCU->debugger) */\r
-int dcc_wr(uint32 data)\r
-{\r
-       volatile uint32 dcc_reg;\r
-\r
-       do {\r
-               asm volatile ("mrc p14, 0, %0, C0, C0" : "=r" (dcc_reg) : );\r
-               /* operation controled by master, cancel operation\r
-                        upon reception of data for immediate response */\r
-               if (dcc_reg&1) return -1;\r
-       } while (dcc_reg&2);\r
-\r
-       asm volatile ("mcr p14, 0, %0, C1, C0" : : "r" (data));\r
-       return 0;\r
-}\r
+/***************************************************************************
+ *   Copyright (C) 2007 by Pavel Chromy                                    *
+ *   chromy@asix.cz                                                        *
+ *                                                                         *
+ *   This program is free software; you can redistribute it and/or modify  *
+ *   it under the terms of the GNU General Public License as published by  *
+ *   the Free Software Foundation; either version 2 of the License, or     *
+ *   (at your option) any later version.                                   *
+ *                                                                         *
+ *   This program is distributed in the hope that it will be useful,       *
+ *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
+ *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
+ *   GNU General Public License for more details.                          *
+ *                                                                         *
+ *   You should have received a copy of the GNU General Public License     *
+ *   along with this program; if not, write to the                         *
+ *   Free Software Foundation, Inc.,                                       *
+ *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
+ ***************************************************************************/
+#include "dcc.h"
+
+
+/* debug channel read (debugger->MCU) */
+uint32 dcc_rd(void)
+{
+       volatile uint32 dcc_reg;
+
+       do {
+               asm volatile ("mrc p14, 0, %0, C0, C0" : "=r" (dcc_reg) : );
+       } while ((dcc_reg&1)==0);
+
+       asm volatile ("mrc p14, 0, %0, C1, C0" : "=r" (dcc_reg) : );
+       return dcc_reg;
+}
+
+
+/* debug channel write (MCU->debugger) */
+int dcc_wr(uint32 data)
+{
+       volatile uint32 dcc_reg;
+
+       do {
+               asm volatile ("mrc p14, 0, %0, C0, C0" : "=r" (dcc_reg) : );
+               /* operation controled by master, cancel operation
+                        upon reception of data for immediate response */
+               if (dcc_reg&1) return -1;
+       } while (dcc_reg&2);
+
+       asm volatile ("mcr p14, 0, %0, C1, C0" : : "r" (data));
+       return 0;
+}

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)