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

Go to the source code of this file.

Data Structures

struct  ls1_sap
 

Functions

static int ls1_sap_arch_state (struct target *target)
 
static int ls1_sap_assert_reset (struct target *target)
 
static int ls1_sap_deassert_reset (struct target *target)
 
static int ls1_sap_halt (struct target *target)
 
static int ls1_sap_init_target (struct command_context *cmd_ctx, struct target *target)
 
static void ls1_sap_memory_cmd (struct jtag_tap *tap, uint32_t address, int32_t size, bool rnw)
 
static void ls1_sap_memory_read (struct jtag_tap *tap, uint32_t size, uint8_t *value)
 
static void ls1_sap_memory_write (struct jtag_tap *tap, uint32_t size, const uint8_t *value)
 
static int ls1_sap_poll (struct target *target)
 
static int ls1_sap_read_memory (struct target *target, target_addr_t address, uint32_t size, uint32_t count, uint8_t *buffer)
 
static int ls1_sap_resume (struct target *target, int current, target_addr_t address, int handle_breakpoints, int debug_execution)
 
static void ls1_sap_set_addr_high (struct jtag_tap *tap, uint16_t addr_high)
 
static void ls1_sap_set_instr (struct jtag_tap *tap, uint32_t new_instr)
 
static int ls1_sap_step (struct target *target, int current, target_addr_t address, int handle_breakpoints)
 
static int ls1_sap_target_create (struct target *target, Jim_Interp *interp)
 
static int ls1_sap_write_memory (struct target *target, target_addr_t address, uint32_t size, uint32_t count, const uint8_t *buffer)
 

Variables

struct target_type ls1_sap_target
 

Function Documentation

◆ ls1_sap_arch_state()

static int ls1_sap_arch_state ( struct target target)
static

Definition at line 36 of file ls1_sap.c.

References ERROR_OK, and LOG_DEBUG.

◆ ls1_sap_assert_reset()

static int ls1_sap_assert_reset ( struct target target)
static

Definition at line 72 of file ls1_sap.c.

References ERROR_OK, LOG_DEBUG, target::state, and TARGET_RESET.

◆ ls1_sap_deassert_reset()

static int ls1_sap_deassert_reset ( struct target target)
static

Definition at line 80 of file ls1_sap.c.

References ERROR_OK, LOG_DEBUG, target::state, and TARGET_RUNNING.

◆ ls1_sap_halt()

static int ls1_sap_halt ( struct target target)
static

Definition at line 52 of file ls1_sap.c.

References ERROR_OK, and LOG_DEBUG.

◆ ls1_sap_init_target()

static int ls1_sap_init_target ( struct command_context cmd_ctx,
struct target target 
)
static

Definition at line 30 of file ls1_sap.c.

References ERROR_OK, and LOG_DEBUG.

◆ ls1_sap_memory_cmd()

static void ls1_sap_memory_cmd ( struct jtag_tap tap,
uint32_t  address,
int32_t  size,
bool  rnw 
)
static

◆ ls1_sap_memory_read()

static void ls1_sap_memory_read ( struct jtag_tap tap,
uint32_t  size,
uint8_t *  value 
)
static

◆ ls1_sap_memory_write()

static void ls1_sap_memory_write ( struct jtag_tap tap,
uint32_t  size,
const uint8_t *  value 
)
static

◆ ls1_sap_poll()

static int ls1_sap_poll ( struct target target)
static

◆ ls1_sap_read_memory()

static int ls1_sap_read_memory ( struct target target,
target_addr_t  address,
uint32_t  size,
uint32_t  count,
uint8_t *  buffer 
)
static

◆ ls1_sap_resume()

static int ls1_sap_resume ( struct target target,
int  current,
target_addr_t  address,
int  handle_breakpoints,
int  debug_execution 
)
static

Definition at line 58 of file ls1_sap.c.

References ERROR_OK, and LOG_DEBUG.

◆ ls1_sap_set_addr_high()

static void ls1_sap_set_addr_high ( struct jtag_tap tap,
uint16_t  addr_high 
)
static

◆ ls1_sap_set_instr()

◆ ls1_sap_step()

static int ls1_sap_step ( struct target target,
int  current,
target_addr_t  address,
int  handle_breakpoints 
)
static

Definition at line 65 of file ls1_sap.c.

References ERROR_OK, and LOG_DEBUG.

◆ ls1_sap_target_create()

static int ls1_sap_target_create ( struct target target,
Jim_Interp *  interp 
)
static

Definition at line 20 of file ls1_sap.c.

References target::arch_info, ERROR_OK, ls1_sap::tap, and target::tap.

◆ ls1_sap_write_memory()

static int ls1_sap_write_memory ( struct target target,
target_addr_t  address,
uint32_t  size,
uint32_t  count,
const uint8_t *  buffer 
)
static

Definition at line 193 of file ls1_sap.c.

Variable Documentation

◆ ls1_sap_target

struct target_type ls1_sap_target
Initial value:
= {
.name = "ls1_sap",
.target_create = ls1_sap_target_create,
.init_target = ls1_sap_init_target,
.poll = ls1_sap_poll,
.arch_state = ls1_sap_arch_state,
.halt = ls1_sap_halt,
.resume = ls1_sap_resume,
.step = ls1_sap_step,
.assert_reset = ls1_sap_assert_reset,
.deassert_reset = ls1_sap_deassert_reset,
.read_memory = ls1_sap_read_memory,
.write_memory = ls1_sap_write_memory,
}
static int ls1_sap_target_create(struct target *target, Jim_Interp *interp)
Definition: ls1_sap.c:20
static int ls1_sap_resume(struct target *target, int current, target_addr_t address, int handle_breakpoints, int debug_execution)
Definition: ls1_sap.c:58
static int ls1_sap_read_memory(struct target *target, target_addr_t address, uint32_t size, uint32_t count, uint8_t *buffer)
Definition: ls1_sap.c:172
static int ls1_sap_arch_state(struct target *target)
Definition: ls1_sap.c:36
static int ls1_sap_deassert_reset(struct target *target)
Definition: ls1_sap.c:80
static int ls1_sap_halt(struct target *target)
Definition: ls1_sap.c:52
static int ls1_sap_init_target(struct command_context *cmd_ctx, struct target *target)
Definition: ls1_sap.c:30
static int ls1_sap_step(struct target *target, int current, target_addr_t address, int handle_breakpoints)
Definition: ls1_sap.c:65
static int ls1_sap_assert_reset(struct target *target)
Definition: ls1_sap.c:72
static int ls1_sap_poll(struct target *target)
Definition: ls1_sap.c:42
static int ls1_sap_write_memory(struct target *target, target_addr_t address, uint32_t size, uint32_t count, const uint8_t *buffer)
Definition: ls1_sap.c:193

Definition at line 193 of file ls1_sap.c.