diff options
| author | Keith Packard <keithp@keithp.com> | 2008-12-17 23:12:59 -0800 |
|---|---|---|
| committer | Keith Packard <keithp@keithp.com> | 2008-12-17 23:12:59 -0800 |
| commit | fa168f963f8b00144d12aa2770e9c0917cfae123 (patch) | |
| tree | b57701ef1b9cc331fc97b977557e8b4029365033 /ccdbg.h | |
| parent | 5df84df7cd6a31527dcfd11030f00ef9d8abf170 (diff) | |
Fill out ccdbg-command to support all debug commands.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'ccdbg.h')
| -rw-r--r-- | ccdbg.h | 33 |
1 files changed, 31 insertions, 2 deletions
@@ -88,7 +88,7 @@ struct ccdbg { #define CC_RESUME 0x4c #define CC_DEBUG_INSTR(n) (0x54|(n)) #define CC_STEP_INSTR 0x5c -#define CC_STEP_REPLACE (0x64|(n)) +#define CC_STEP_REPLACE(n) (0x64|(n)) #define CC_GET_CHIP_ID 0x68 #define CC_DEBUG_BITBANG 0x00000001 @@ -102,14 +102,43 @@ void ccdbg_reset(struct ccdbg *dbg); uint8_t -ccdbg_read_status(struct ccdbg *dbg); +ccdbg_chip_erase(struct ccdbg *dbg); + +uint8_t +ccdbg_wr_config(struct ccdbg *dbg, uint8_t config); uint8_t ccdbg_rd_config(struct ccdbg *dbg); +uint8_t +ccdbg_get_pc(struct ccdbg *dbg); + +uint8_t +ccdbg_read_status(struct ccdbg *dbg); + +uint8_t +ccdbg_set_hw_brkpnt(struct ccdbg *dbg, uint8_t number, uint8_t enable, uint16_t addr); + +uint8_t +ccdbg_halt(struct ccdbg *dbg); + +uint8_t +ccdbg_resume(struct ccdbg *dbg); + +uint8_t +ccdbg_debug_instr(struct ccdbg *dbg, uint8_t *instr, int nbytes); + +uint8_t +ccdbg_step_instr(struct ccdbg *dbg); + +uint8_t +ccdbg_step_replace(struct ccdbg *dbg, uint8_t *instr, int nbytes); + uint16_t ccdbg_get_chip_id(struct ccdbg *dbg); + + /* ccdbg-debug.c */ void ccdbg_debug(int level, char *format, ...); |
