X-Git-Url: https://git.cryptolib.org/?p=avr-crypto-lib.git;a=blobdiff_plain;f=test_src%2Fdump-decl.c;h=f35423cceeaa1dd878c8b378624e2a5930b90473;hp=0053df85a77a19696b4af1c277cbf8df97a165aa;hb=4b5da1dc27a791b5c448274a3db09cd035b33493;hpb=52ec168ece9d61bd9cb652235dfe8faee6232a11 diff --git a/test_src/dump-decl.c b/test_src/dump-decl.c index 0053df8..f35423c 100644 --- a/test_src/dump-decl.c +++ b/test_src/dump-decl.c @@ -1,7 +1,7 @@ /* dump.c */ /* This file is part of the AVR-Crypto-Lib. - Copyright (C) 2008 Daniel Otte (daniel.otte@rub.de) + Copyright (C) 2006-2015 Daniel Otte (bg@nerilex.org) This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -18,7 +18,7 @@ */ /** * \file dump.c - * \email daniel.otte@rub.de + * \email bg@nerilex.org * \author Daniel Otte * \date 2009-02-04 * \license GPLv3 or later @@ -36,9 +36,9 @@ #define DUMP_WIDTH 16 -void pgm_read_block(void* buffer, uint32_t addr, uint8_t length); -void ee_read_block(void* buffer, uint32_t addr, uint8_t length); -void ram_read_block(void* buffer, uint32_t addr, uint8_t length); +void pgm_read_block(void *buffer, uint32_t addr, uint8_t length); +void ee_read_block(void *buffer, uint32_t addr, uint8_t length); +void ram_read_block(void *buffer, uint32_t addr, uint8_t length); const char flash_trigger[] PROGMEM = "fF"; const char ram_trigger[] PROGMEM = "sSrRmM"; @@ -48,7 +48,7 @@ const char flash_desc[] PROGMEM = "flash"; const char ram_desc[] PROGMEM = "ram"; const char eeprom_desc[] PROGMEM = "eeprom"; -typedef struct { +typedef const struct { PGM_P trigger; PGM_P desc; void (*fpt)(void*, uint32_t, uint8_t); @@ -61,4 +61,4 @@ memtype_desc_t memtype_desc[] PROGMEM = { { NULL, NULL, NULL } }; -void dump(char* s); +void dump(char *s);