diff options
| author | Keith Packard <keithp@keithp.com> | 2008-12-18 00:18:50 -0800 |
|---|---|---|
| committer | Keith Packard <keithp@keithp.com> | 2008-12-18 00:18:50 -0800 |
| commit | 807e2adacb025af77bb53c03209e9c8e0d7a5f95 (patch) | |
| tree | ae58ce250aca9f66086e888face7e8c8d3c1473e /ccdbg.h | |
| parent | 8c879bf51c14a5928135d59211facd72f6a32808 (diff) | |
Add ability to read/write arbitrary memory. Write LED blinker program.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'ccdbg.h')
| -rw-r--r-- | ccdbg.h | 14 |
1 files changed, 10 insertions, 4 deletions
@@ -93,6 +93,7 @@ struct ccdbg { #define CC_DEBUG_BITBANG 0x00000001 #define CC_DEBUG_COMMAND 0x00000002 +#define CC_DEBUG_INSTRUCTIONS 0x00000004 /* ccdbg-command.c */ void @@ -137,7 +138,8 @@ ccdbg_step_replace(struct ccdbg *dbg, uint8_t *instr, int nbytes); uint16_t ccdbg_get_chip_id(struct ccdbg *dbg); - +uint8_t +ccdbg_execute(struct ccdbg *dbg, uint8_t *inst); /* ccdbg-debug.c */ void @@ -151,9 +153,6 @@ ccdbg_clear_debug(int level); /* ccdbg-io.c */ void -ccdbg_quarter_clock(struct ccdbg *dbg); - -void ccdbg_half_clock(struct ccdbg *dbg); int @@ -224,6 +223,13 @@ ccdbg_print(char *format, uint8_t mask, uint8_t set); void ccdbg_manual(struct ccdbg *dbg, FILE *input); +/* ccdbg-memory.c */ +uint8_t +ccdbg_write_memory(struct ccdbg *dbg, uint16_t addr, uint8_t *bytes, int nbytes); + +uint8_t +ccdbg_read_memory(struct ccdbg *dbg, uint16_t addr, uint8_t *bytes, int nbytes); + /* cp-usb.c */ void cp_usb_init(struct ccdbg *dbg); |
