Browse Source

Encapsulate JTAG Cable API and interface structure, plan for new header file.

git-svn-id: svn://svn.berlios.de/openocd/trunk@1984 b42882b7-edfa-0310-969c-e2dbd0fdcd60
tags/v0.2.0
zwelch 15 years ago
parent
commit
a88871bc6a
19 changed files with 26 additions and 0 deletions
  1. +1
    -0
      src/jtag/amt_jtagaccel.c
  2. +1
    -0
      src/jtag/arm-jtag-ew.c
  3. +1
    -0
      src/jtag/at91rm9200.c
  4. +1
    -0
      src/jtag/bitbang.c
  5. +1
    -0
      src/jtag/bitq.c
  6. +1
    -0
      src/jtag/dummy.c
  7. +1
    -0
      src/jtag/ep93xx.c
  8. +1
    -0
      src/jtag/ft2232.c
  9. +1
    -0
      src/jtag/gw16012.c
  10. +1
    -0
      src/jtag/jlink.c
  11. +1
    -0
      src/jtag/jtag.c
  12. +8
    -0
      src/jtag/jtag.h
  13. +1
    -0
      src/jtag/parport.c
  14. +1
    -0
      src/jtag/presto.c
  15. +1
    -0
      src/jtag/rlink/rlink.c
  16. +1
    -0
      src/jtag/usbprog.c
  17. +1
    -0
      src/jtag/vsllink.c
  18. +1
    -0
      src/jtag/zy1000.c
  19. +1
    -0
      src/xsvf/xsvf.c

+ 1
- 0
src/jtag/amt_jtagaccel.c View File

@@ -21,6 +21,7 @@
#include "config.h"
#endif

#define INCLUDE_JTAG_INTERFACE_H
#include "jtag.h"




+ 1
- 0
src/jtag/arm-jtag-ew.c View File

@@ -24,6 +24,7 @@
#include "config.h"
#endif

#define INCLUDE_JTAG_INTERFACE_H
#include "jtag.h"
#include <usb.h>



+ 1
- 0
src/jtag/at91rm9200.c View File

@@ -21,6 +21,7 @@
#include "config.h"
#endif

#define INCLUDE_JTAG_INTERFACE_H
#include "jtag.h"
#include "bitbang.h"



+ 1
- 0
src/jtag/bitbang.c View File

@@ -25,6 +25,7 @@
#endif

#include "bitbang.h"
#define INCLUDE_JTAG_INTERFACE_H
#include "jtag.h"

/**


+ 1
- 0
src/jtag/bitq.c View File

@@ -21,6 +21,7 @@
#include "config.h"
#endif

#define INCLUDE_JTAG_INTERFACE_H
#include "bitq.h"




+ 1
- 0
src/jtag/dummy.c View File

@@ -21,6 +21,7 @@
#include "config.h"
#endif

#define INCLUDE_JTAG_INTERFACE_H
#include "jtag.h"
#include "bitbang.h"



+ 1
- 0
src/jtag/ep93xx.c View File

@@ -21,6 +21,7 @@
#include "config.h"
#endif

#define INCLUDE_JTAG_INTERFACE_H
#include "jtag.h"
#include "bitbang.h"



+ 1
- 0
src/jtag/ft2232.c View File

@@ -40,6 +40,7 @@
#endif

/* project specific includes */
#define INCLUDE_JTAG_INTERFACE_H
#include "jtag.h"
#include "time_support.h"



+ 1
- 0
src/jtag/gw16012.c View File

@@ -21,6 +21,7 @@
#include "config.h"
#endif

#define INCLUDE_JTAG_INTERFACE_H
#include "jtag.h"




+ 1
- 0
src/jtag/jlink.c View File

@@ -25,6 +25,7 @@
#include "config.h"
#endif

#define INCLUDE_JTAG_INTERFACE_H
#include "jtag.h"

#include <usb.h>


+ 1
- 0
src/jtag/jtag.c View File

@@ -29,6 +29,7 @@
#endif

#define INCLUDE_JTAG_MINIDRIVER_H
#define INCLUDE_JTAG_INTERFACE_H
#include "jtag.h"

#ifdef HAVE_STRINGS_H


+ 8
- 0
src/jtag/jtag.h View File

@@ -105,6 +105,8 @@ typedef struct tap_transition_s
//extern tap_transition_t tap_transitions[16]; /* describe the TAP state diagram */


#ifdef INCLUDE_JTAG_INTERFACE_H

/*-----<Cable Helper API>-------------------------------------------*/

/* The "Cable Helper API" is what the cable drivers can use to help implement
@@ -254,6 +256,8 @@ static inline tap_state_t jtag_debug_state_machine(const void *tms_buf,

/*-----</Cable Helper API>------------------------------------------*/

#endif // INCLUDE_JTAG_INTERFACE_H


extern tap_state_t cmd_queue_end_state; /* finish DR scans in dr_end_state */
extern tap_state_t cmd_queue_cur_state; /* current TAP state */
@@ -428,6 +432,8 @@ enum reset_line_mode {
LINE_PUSH_PULL = 0x1,
};

#ifdef INCLUDE_JTAG_INTERFACE_H

typedef struct jtag_interface_s
{
char* name;
@@ -477,6 +483,8 @@ typedef struct jtag_interface_s
int (*srst_asserted)(int* srst_asserted);
} jtag_interface_t;

#endif // INCLUDE_JTAG_INTERFACE_H

enum jtag_event {
JTAG_TRST_ASSERTED
};


+ 1
- 0
src/jtag/parport.c View File

@@ -24,6 +24,7 @@
#include "config.h"
#endif

#define INCLUDE_JTAG_INTERFACE_H
#include "jtag.h"
#include "bitbang.h"



+ 1
- 0
src/jtag/presto.c View File

@@ -25,6 +25,7 @@
#include "windows.h"
#endif

#define INCLUDE_JTAG_INTERFACE_H
#include "jtag.h"
#include "time_support.h"
#include "bitq.h"


+ 1
- 0
src/jtag/rlink/rlink.c View File

@@ -28,6 +28,7 @@
#endif

/* project specific includes */
#define INCLUDE_JTAG_INTERFACE_H
#include "jtag.h"
#include "rlink.h"
#include "st7.h"


+ 1
- 0
src/jtag/usbprog.c View File

@@ -34,6 +34,7 @@
#include "config.h"
#endif

#define INCLUDE_JTAG_INTERFACE_H
#include "jtag.h"

#include <usb.h>


+ 1
- 0
src/jtag/vsllink.c View File

@@ -26,6 +26,7 @@
#include "config.h"
#endif

#define INCLUDE_JTAG_INTERFACE_H
#include "jtag.h"

#include <usb.h>


+ 1
- 0
src/jtag/zy1000.c View File

@@ -21,6 +21,7 @@
#endif

#define INCLUDE_JTAG_MINIDRIVER_H
#define INCLUDE_JTAG_INTERFACE_H
#include "embeddedice.h"
#include "bitbang.h"



+ 1
- 0
src/xsvf/xsvf.c View File

@@ -41,6 +41,7 @@
#include "config.h"
#endif

#define INCLUDE_JTAG_INTERFACE_H
#include "xsvf.h"
#include "jtag.h"



Loading…
Cancel
Save