add overridable Tcl "init_reset"
[openocd.git] / src / target / arm_adi_v5.h
index 2015c4d3d882b804ea4a5c3222e922f8886e8add..3ff883af755bc8b508a5b49e633833d1e81614a7 100644 (file)
 #define DP_SELECT              0x8
 #define DP_RDBUFF              0xC
 
-#define CORUNDETECT            (1<<0)
-#define SSTICKYORUN            (1<<1)
-#define SSTICKYERR             (1<<5)
-#define CDBGRSTREQ             (1<<26)
-#define CDBGRSTACK             (1<<27)
-#define CDBGPWRUPREQ   (1<<28)
-#define CDBGPWRUPACK   (1<<29)
-#define CSYSPWRUPREQ   (1<<30)
-#define CSYSPWRUPACK   (1<<31)
+#define CORUNDETECT            (1 << 0)
+#define SSTICKYORUN            (1 << 1)
+#define SSTICKYERR             (1 << 5)
+#define CDBGRSTREQ             (1 << 26)
+#define CDBGRSTACK             (1 << 27)
+#define CDBGPWRUPREQ   (1 << 28)
+#define CDBGPWRUPACK   (1 << 29)
+#define CSYSPWRUPREQ   (1 << 30)
+#define CSYSPWRUPACK   (1 << 31)
 
 #define        AP_REG_CSW              0x00
 #define AP_REG_TAR             0x04
 #define CSW_16BIT              1
 #define CSW_32BIT              2
 
-#define CSW_ADDRINC_MASK       (3<<4)
+#define CSW_ADDRINC_MASK       (3 << 4)
 #define CSW_ADDRINC_OFF                0
-#define CSW_ADDRINC_SINGLE     (1<<4)
-#define CSW_ADDRINC_PACKED     (2<<4)
-#define CSW_HPROT                      (1<<25)
-#define CSW_MASTER_DEBUG       (1<<29)
-#define CSW_DBGSWENABLE                (1<<31)
+#define CSW_ADDRINC_SINGLE     (1 << 4)
+#define CSW_ADDRINC_PACKED     (2 << 4)
+#define CSW_HPROT                      (1 << 25)
+#define CSW_MASTER_DEBUG       (1 << 29)
+#define CSW_DBGSWENABLE                (1 << 31)
 
 /* transaction mode */
 #define TRANS_MODE_NONE                        0
@@ -104,10 +104,10 @@ typedef struct swjdp_common_s
 
 } swjdp_common_t;
 
-/* Accessor function for currently selected DAP-AP number */ 
+/* Accessor function for currently selected DAP-AP number */
 static inline uint8_t dap_ap_get_select(swjdp_common_t *swjdp)
 {
-       return (uint8_t)( swjdp ->apsel >> 24);
+       return (uint8_t)(swjdp ->apsel >> 24);
 }
 
 /* Internal functions used in the module, partial transactions, use with caution */
@@ -145,13 +145,17 @@ extern int mem_ap_write_buf_u32(swjdp_common_t *swjdp, uint8_t *buffer, int coun
 /* Initialisation of the debug system, power domains and registers */
 extern int ahbap_debugport_init(swjdp_common_t *swjdp);
 
-extern int dap_info_command(struct command_context_s *cmd_ctx, swjdp_common_t *swjdp, int apsel);
+
 /* Commands for user dap access */
-/* Currently implemented in armv7m, needs armv7m target structure to find jtag and swjdp structures */
-extern int handle_dap_info_command(struct command_context_s *cmd_ctx, char *cmd, char **args, int argc);
-extern int handle_dap_apsel_command(struct command_context_s *cmd_ctx, char *cmd, char **args, int argc);
-extern int handle_dap_apid_command(struct command_context_s *cmd_ctx, char *cmd, char **args, int argc);
-extern int handle_dap_baseaddr_command(struct command_context_s *cmd_ctx, char *cmd, char **args, int argc);
-extern int handle_dap_memaccess_command(struct command_context_s *cmd_ctx, char *cmd, char **args, int argc);
+int dap_info_command(struct command_context_s *cmd_ctx,
+               swjdp_common_t *swjdp, int apsel);
+int dap_baseaddr_command(struct command_context_s *cmd_ctx,
+               swjdp_common_t *swjdp, char **args, int argc);
+int dap_memaccess_command(struct command_context_s *cmd_ctx,
+               swjdp_common_t *swjdp, char **args, int argc);
+int dap_apsel_command(struct command_context_s *cmd_ctx,
+               swjdp_common_t *swjdp, char **args, int argc);
+int dap_apid_command(struct command_context_s *cmd_ctx,
+               swjdp_common_t *swjdp, char **args, int argc);
 
 #endif

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)