X-Git-Url: https://git.cryptolib.org/?a=blobdiff_plain;f=test_src%2Fdebug.c;h=00b264f8bd9ea41779c36b54a50ffce61533e95c;hb=d9352fc79fbdee0cf3288809b104ea196ea85693;hp=3b5fee4c74c71a3b5e873acd21b013841245f491;hpb=2159c273c9d3361571a6ff1ab63d9bc76582fbab;p=avr-crypto-lib.git diff --git a/test_src/debug.c b/test_src/debug.c index 3b5fee4..00b264f 100644 --- a/test_src/debug.c +++ b/test_src/debug.c @@ -1,7 +1,7 @@ /* debug.c */ /* - This file is part of the Crypto-avr-lib/microcrypt-lib. - Copyright (C) 2008 Daniel Otte (daniel.otte@rub.de) + This file is part of the AVR-Crypto-Lib. + 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 @@ -23,35 +23,35 @@ ****************************/ #include "config.h" -#if DEBUG == uart +#if DEBUG_METHOD == uart #include "uart.h" #else #error "Your DEBUG methode is not suported!" #endif -#ifdef DEBUG +#ifdef DEBUG_METHOD void debug_init(void){ - #if DBUG==uart - uart_init(); + #if DEBUG_METHOD==uart + uart0_init(); #else #error "Your DEBUG methode is not suported!" #endif } - + void debug_char(char c){ static char initialised = 0; if (!initialised){ - uart_init(); + uart0_init(); initialised=1; - } - uart_putc(c); + } + uart0_putc(c); } - - void debug_str(char* s){ + + void debug_str(char *s){ while (*s) debug_char(*s++); } - + void debug_byte(char b){