OpenOCD
dsp563xx.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 
3 /***************************************************************************
4  * Copyright (C) 2009-2011 by Mathias Kuester *
5  * mkdorg@users.sourceforge.net *
6  ***************************************************************************/
7 
8 #ifndef OPENOCD_TARGET_DSP563XX_H
9 #define OPENOCD_TARGET_DSP563XX_H
10 
11 #include <jtag/jtag.h>
12 #include <target/dsp563xx_once.h>
13 
14 #define DSP563XX_NUMCOREREGS 54
15 #define DSP563XX_NUMONCEREGS 25
16 
17 struct mcu_jtag {
18  struct jtag_tap *tap;
19 };
20 
22  BPU_NONE = 0,
25 };
26 
29 };
30 
32  struct mcu_jtag jtag_info;
36 
37  /* register cache to processor synchronization */
38  int (*read_core_reg)(struct target *target, int num);
39  int (*write_core_reg)(struct target *target, int num);
40 
42 
43  /*Were the hardware breakpoints cleared on startup?*/
45 };
46 
48  uint32_t num;
49  const char *name;
50  uint32_t size;
51  uint8_t eame;
52  uint32_t instr_mask;
53  struct target *target;
55 };
56 
57 static inline struct dsp563xx_common *target_to_dsp563xx(struct target *target)
58 {
59  return target->arch_info;
60 }
61 
62 #endif /* OPENOCD_TARGET_DSP563XX_H */
#define DSP563XX_NUMONCEREGS
Definition: dsp563xx.h:15
breakpoint_usage
Definition: dsp563xx.h:21
@ BPU_NONE
Definition: dsp563xx.h:22
@ BPU_BREAKPOINT
Definition: dsp563xx.h:23
@ BPU_WATCHPOINT
Definition: dsp563xx.h:24
#define DSP563XX_NUMCOREREGS
Definition: dsp563xx.h:14
static struct dsp563xx_common * target_to_dsp563xx(struct target *target)
Definition: dsp563xx.h:57
The JTAG interface can be implemented with a software or hardware fifo.
struct target * target
Definition: rtt/rtt.c:26
uint32_t core_regs[DSP563XX_NUMCOREREGS]
Definition: dsp563xx.h:34
int(* read_core_reg)(struct target *target, int num)
Definition: dsp563xx.h:38
bool hardware_breakpoints_cleared
Definition: dsp563xx.h:44
struct mcu_jtag jtag_info
Definition: dsp563xx.h:32
struct once_reg once_regs[DSP563XX_NUMONCEREGS]
Definition: dsp563xx.h:35
int(* write_core_reg)(struct target *target, int num)
Definition: dsp563xx.h:39
struct reg_cache * core_cache
Definition: dsp563xx.h:33
uint32_t instr_mask
Definition: dsp563xx.h:52
uint32_t size
Definition: dsp563xx.h:50
struct dsp563xx_common * dsp563xx_common
Definition: dsp563xx.h:54
struct target * target
Definition: dsp563xx.h:53
uint32_t num
Definition: dsp563xx.h:48
uint8_t eame
Definition: dsp563xx.h:51
const char * name
Definition: dsp563xx.h:49
enum breakpoint_usage used
Definition: dsp563xx.h:28
Definition: jtag.h:100
Definition: avrt.h:13
struct jtag_tap * tap
Definition: avrt.h:14
Definition: target.h:120
void * arch_info
Definition: target.h:169