Select one of the symbols to view example projects that use it.
 
Outline
#define OPENOCD_TARGET_AVR32_JTAG_H
#define AVR32NUMCOREREGS
#define AVR32_INST_IDCODE
#define AVR32_INST_NEXUS_ACCESS
#define AVR32_INST_MW_ACCESS
#define AVR32_INST_MB_ACCESS
#define SLAVE_OCD
#define SLAVE_HSB_CACHED
#define SLAVE_HSB_UNCACHED
#define AVR32_OCDREG_DID
#define AVR32_OCDREG_DC
#define OCDREG_DC_SS
#define OCDREG_DC_DBR
#define OCDREG_DC_DBE
#define OCDREG_DC_SQA
#define OCDREG_DC_RES
#define OCDREG_DC_ABORT
#define AVR32_OCDREG_DS
#define OCDREG_DS_SSS
#define OCDREG_DS_SWB
#define OCDREG_DS_HWB
#define OCDREG_DS_STP
#define OCDREG_DS_DBS
#define OCDREG_DS_BP_SHIFT
#define OCDREG_DS_BP_MASK
#define OCDREG_DS_INC
#define OCDREG_DS_BOZ
#define OCDREG_DS_DBA
#define OCDREG_DS_EXB
#define OCDREG_DS_NTBF
#define AVR32_OCDREG_DINST
#define AVR32_OCDREG_DPC
#define AVR32_OCDREG_DCCPU
#define AVR32_OCDREG_DCEMU
#define AVR32_OCDREG_DCSR
#define OCDREG_DCSR_CPUD
#define OCDREG_DCSR_EMUD
#define MODE_WRITE
#define MODE_READ
#define RETD
#define MTDR
#define MFDR
#define MTSR
#define MFSR
avr32_jtag
avr32_jtag_nexus_read(struct avr32_jtag *, uint32_t, uint32_t *);
avr32_jtag_nexus_write(struct avr32_jtag *, uint32_t, uint32_t);
avr32_jtag_mwa_read(struct avr32_jtag *, int, uint32_t, uint32_t *);
avr32_jtag_mwa_write(struct avr32_jtag *, int, uint32_t, uint32_t);
avr32_ocd_setbits(struct avr32_jtag *, int, uint32_t);
avr32_ocd_clearbits(struct avr32_jtag *, int, uint32_t);
avr32_jtag_exec(struct avr32_jtag *, uint32_t);
Files
loading...
SourceVuDevelopment ToolsOpenOCDsrc/target/avr32_jtag.h
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
/* SPDX-License-Identifier: GPL-2.0-or-later */ /*************************************************************************** * Copyright (C) 2010 by Oleksandr Tymoshenko <gonzo@bluezbox.com> * ***************************************************************************//* ... */ #ifndef OPENOCD_TARGET_AVR32_JTAG_H #define OPENOCD_TARGET_AVR32_JTAG_H #define AVR32NUMCOREREGS 17 /* tap instructions */ #define AVR32_INST_IDCODE 0x01 #define AVR32_INST_NEXUS_ACCESS 0x10 #define AVR32_INST_MW_ACCESS 0x11 #define AVR32_INST_MB_ACCESS 0x12 #define SLAVE_OCD 0x01 #define SLAVE_HSB_CACHED 0x04 #define SLAVE_HSB_UNCACHED 0x05 /* * Registers *//* ... */ #define AVR32_OCDREG_DID 0x00 #define AVR32_OCDREG_DC 0x02 #define OCDREG_DC_SS (1 << 8) #define OCDREG_DC_DBR (1 << 12) #define OCDREG_DC_DBE (1 << 13) #define OCDREG_DC_SQA (1 << 22) #define OCDREG_DC_RES (1 << 30) #define OCDREG_DC_ABORT (1 << 31) #define AVR32_OCDREG_DS 0x04 #define OCDREG_DS_SSS (1 << 0) #define OCDREG_DS_SWB (1 << 1) #define OCDREG_DS_HWB (1 << 2) #define OCDREG_DS_STP (1 << 4) #define OCDREG_DS_DBS (1 << 5) #define OCDREG_DS_BP_SHIFT 8 #define OCDREG_DS_BP_MASK 0xff #define OCDREG_DS_INC (1 << 24) #define OCDREG_DS_BOZ (1 << 25) #define OCDREG_DS_DBA (1 << 26) #define OCDREG_DS_EXB (1 << 27) #define OCDREG_DS_NTBF (1 << 28) #define AVR32_OCDREG_DINST 0x41 #define AVR32_OCDREG_DPC 0x42 #define AVR32_OCDREG_DCCPU 0x44 #define AVR32_OCDREG_DCEMU 0x45 #define AVR32_OCDREG_DCSR 0x46 #define OCDREG_DCSR_CPUD (1 << 0) #define OCDREG_DCSR_EMUD (1 << 1) /* * Direction bit *//* ... */ #define MODE_WRITE 0x00 #define MODE_READ 0x01 /* * Some instructions *//* ... */ #define RETD 0xd703d623 #define MTDR(dreg, reg) (0xe7b00044 | ((reg) << 16) | dreg) #define MFDR(reg, dreg) (0xe5b00044 | ((reg) << 16) | dreg) #define MTSR(sysreg, reg) (0xe3b00002 | ((reg) << 16) | sysreg) #define MFSR(reg, sysreg) (0xe1b00002 | ((reg) << 16) | sysreg) 44 defines struct avr32_jtag { struct jtag_tap *tap; uint32_t dpc; /* Debug PC value */ ...}; int avr32_jtag_nexus_read(struct avr32_jtag *jtag_info, uint32_t addr, uint32_t *value); int avr32_jtag_nexus_write(struct avr32_jtag *jtag_info, uint32_t addr, uint32_t value); int avr32_jtag_mwa_read(struct avr32_jtag *jtag_info, int slave, uint32_t addr, uint32_t *value); int avr32_jtag_mwa_write(struct avr32_jtag *jtag_info, int slave, uint32_t addr, uint32_t value); int avr32_ocd_setbits(struct avr32_jtag *jtag, int reg, uint32_t bits); int avr32_ocd_clearbits(struct avr32_jtag *jtag, int reg, uint32_t bits); int avr32_jtag_exec(struct avr32_jtag *jtag_info, uint32_t inst); /* ... */ #endif /* OPENOCD_TARGET_AVR32_JTAG_H */
Details
Show:
from
Types: Columns:
Click anywhere in the source to view detailed information here...