+/*
+ * (C) Copyright 2014 Leo C. <erbl259-lmu@yahoo.de>
+ *
+ * SPDX-License-Identifier: GPL-2.0+
+ */
+
#include "common.h"
+#include <stdint.h>
#include <stdio.h>
#include <ctype.h>
#include "con-utils.h"
*buf++ = *(uint8_t *) (size_t) addr++;
}
+void flash_read_buf(uint8_t *buf, uint32_t addr, uint8_t count)
+{
+ while (count--)
+ *buf++ = *(const __memx uint8_t *) (__uint24) addr++;
+}
+
int dump_mem(uint32_t address, uint32_t offset, uint32_t len,
void (*readfkt)(uint8_t *, uint32_t, uint8_t), char *title)
{
dump_mem(addr, addr, len, eeprom_read_buf, title);
}
-void dump_ram(uint32_t addr, uint32_t offset, unsigned int len, char *title)
+void dump_ram(uint8_t *addr, size_t offset, unsigned int len, char *title)
{
- dump_mem(addr, offset, len, ram_read_buf, title);
+ dump_mem((uint32_t) (size_t) addr, offset, len, ram_read_buf, title);
}