ccdbg_read_hex_image(struct ccdbg *dbg, uint16_t address, uint16_t length)
{
struct hex_image *image;
-
+
image = calloc(sizeof(struct hex_image) + length, 1);
image->address = address;
image->length = length;
ccdbg_write_sfr(struct ccdbg *dbg, uint8_t addr, uint8_t *bytes, int nbytes)
{
int i;
-
+
for (i = 0; i < nbytes; i++) {
sfr_write[SFR_WRITE_ADDR] = addr + i;
sfr_write[SFR_WRITE_DATA] = *bytes++;