OpenOCD
gw16012.c File Reference
Include dependency graph for gw16012.c:

Go to the source code of this file.

Macros

#define _DEBUG_GW16012_IO_
 

Functions

 COMMAND_HANDLER (gw16012_handle_parport_port_command)
 
static void gw16012_control (uint8_t value)
 
static void gw16012_data (uint8_t value)
 
static void gw16012_end_state (tap_state_t state)
 
static int gw16012_execute_queue (struct jtag_command *cmd_queue)
 
static int gw16012_init (void)
 
static int gw16012_init_device (void)
 
static void gw16012_input (uint8_t *value)
 
static void gw16012_path_move (struct pathmove_command *cmd)
 
static int gw16012_quit (void)
 
static void gw16012_reset (int trst, int srst)
 
static void gw16012_runtest (unsigned int num_cycles)
 
static void gw16012_scan (bool ir_scan, enum scan_type type, uint8_t *buffer, int scan_size)
 
static void gw16012_state_move (void)
 

Variables

struct adapter_driver gw16012_adapter_driver
 
static const struct command_registration gw16012_command_handlers []
 
static uint8_t gw16012_control_value
 
static struct jtag_interface gw16012_interface
 
static uint8_t gw16012_msb
 
static uint16_t gw16012_port
 

Macro Definition Documentation

◆ _DEBUG_GW16012_IO_

#define _DEBUG_GW16012_IO_

Definition at line 16 of file gw16012.c.

Function Documentation

◆ COMMAND_HANDLER()

COMMAND_HANDLER ( gw16012_handle_parport_port_command  )

◆ gw16012_control()

static void gw16012_control ( uint8_t  value)
static

◆ gw16012_data()

static void gw16012_data ( uint8_t  value)
static

Definition at line 66 of file gw16012.c.

References gw16012_msb, gw16012_port, and LOG_DEBUG.

Referenced by gw16012_path_move(), gw16012_runtest(), gw16012_scan(), and gw16012_state_move().

◆ gw16012_end_state()

static void gw16012_end_state ( tap_state_t  state)
static

◆ gw16012_execute_queue()

◆ gw16012_init()

static int gw16012_init ( void  )
static

◆ gw16012_init_device()

static int gw16012_init_device ( void  )
static

Definition at line 431 of file gw16012.c.

References ERROR_JTAG_INIT_FAILED, ERROR_OK, gw16012_port, LOG_DEBUG, LOG_ERROR, and LOG_WARNING.

Referenced by gw16012_init().

◆ gw16012_input()

static void gw16012_input ( uint8_t *  value)
static

Definition at line 107 of file gw16012.c.

References gw16012_port, and LOG_DEBUG.

Referenced by gw16012_init(), and gw16012_scan().

◆ gw16012_path_move()

static void gw16012_path_move ( struct pathmove_command cmd)
static

◆ gw16012_quit()

static int gw16012_quit ( void  )
static

Definition at line 475 of file gw16012.c.

References ERROR_OK.

◆ gw16012_reset()

static void gw16012_reset ( int  trst,
int  srst 
)
static

Definition at line 121 of file gw16012.c.

References gw16012_control(), and LOG_DEBUG.

Referenced by gw16012_execute_queue(), and gw16012_init().

◆ gw16012_runtest()

static void gw16012_runtest ( unsigned int  num_cycles)
static

◆ gw16012_scan()

static void gw16012_scan ( bool  ir_scan,
enum scan_type  type,
uint8_t *  buffer,
int  scan_size 
)
static

◆ gw16012_state_move()

static void gw16012_state_move ( void  )
static

Variable Documentation

◆ gw16012_adapter_driver

struct adapter_driver gw16012_adapter_driver
Initial value:
= {
.name = "gw16012",
.transports = jtag_only,
.init = gw16012_init,
.quit = gw16012_quit,
.jtag_ops = &gw16012_interface,
}
const char *const jtag_only[]
Definition: adapter.c:27
static int gw16012_init(void)
Definition: gw16012.c:460
static const struct command_registration gw16012_command_handlers[]
Definition: gw16012.c:498
static int gw16012_quit(void)
Definition: gw16012.c:475
static struct jtag_interface gw16012_interface
Definition: gw16012.c:511

Definition at line 481 of file gw16012.c.

◆ gw16012_command_handlers

const struct command_registration gw16012_command_handlers[]
static
Initial value:
= {
{
.name = "parport_port",
.handler = gw16012_handle_parport_port_command,
.mode = COMMAND_CONFIG,
.help = "Display the address of the I/O port (e.g. 0x378) "
"or the number of the '/dev/parport' device used. "
"If a parameter is provided, first change that port.",
.usage = "[port_number]",
},
}
#define COMMAND_REGISTRATION_DONE
Use this as the last entry in an array of command_registration records.
Definition: command.h:253
@ COMMAND_CONFIG
Definition: command.h:41

Definition at line 481 of file gw16012.c.

◆ gw16012_control_value

uint8_t gw16012_control_value
static

Definition at line 60 of file gw16012.c.

Referenced by gw16012_control().

◆ gw16012_interface

struct jtag_interface gw16012_interface
static
Initial value:
= {
.execute_queue = gw16012_execute_queue,
}
static int gw16012_execute_queue(struct jtag_command *cmd_queue)
Definition: gw16012.c:272

Definition at line 481 of file gw16012.c.

◆ gw16012_msb

uint8_t gw16012_msb
static

Definition at line 59 of file gw16012.c.

Referenced by gw16012_data(), and gw16012_init().

◆ gw16012_port

uint16_t gw16012_port
static