]> cloudbase.mooo.com Git - z180-stamp.git/blame - include/print-utils.h
mcd_mem.c: use cmd_error(), z80_bus_request_or_exit()
[z180-stamp.git] / include / print-utils.h
CommitLineData
35edb766 1/*
b35fcb2f 2 * (C) Copyright 2014, 2018 Leo C. <erbl259-lmu@yahoo.de>
35edb766 3 *
b35fcb2f 4 * SPDX-License-Identifier: GPL-2.0
35edb766
L
5 */
6
fc454c83
L
7#ifndef PRINT_UTILS_H
8#define PRINT_UTILS_H
9
10#include "common.h"
11#include <avr/eeprom.h>
12
8f23e84c 13void print_blanks(uint_fast8_t count);
b35fcb2f
L
14ERRNUM dump_mem(uint32_t address, uint32_t offset, uint32_t len,
15 ERRNUM (*readfkt)(uint8_t *, uint32_t, uint8_t), char *title);
fc454c83
L
16
17void dump_eep(uint32_t addr, unsigned int len, char *title);
cca42593 18void dump_ram(uint8_t *addr, size_t offset, unsigned int len, char *title);
fc454c83 19
b35fcb2f
L
20ERRNUM eeprom_read_buf(uint8_t *buf, uint32_t addr, uint8_t count);
21ERRNUM ram_read_buf(uint8_t *buf, uint32_t addr, uint8_t count);
22ERRNUM flash_read_buf(uint8_t *buf, uint32_t addr, uint8_t count);
fc454c83
L
23
24#endif /* PRINT_UTILS_H */