X-Git-Url: https://git.cryptolib.org/?p=avr-crypto-lib.git;a=blobdiff_plain;f=test_src%2Fdebug.c;h=799ccdf5762b499b65e504725e8b7f943bfbf2a7;hp=128b4bcb2278aa9cc921562ca53fe7ed681d0ac6;hb=deca11a7e7be5605c387aa2cd577e22925854ff8;hpb=52ec168ece9d61bd9cb652235dfe8faee6232a11 diff --git a/test_src/debug.c b/test_src/debug.c index 128b4bc..799ccdf 100644 --- a/test_src/debug.c +++ b/test_src/debug.c @@ -23,35 +23,35 @@ ****************************/ #include "config.h" -#if DEBUG == uart - #include "uart_i.h" +#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 + #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){ uart0_init(); initialised=1; - } + } uart0_putc(c); } - - void debug_str(char* s){ + + void debug_str(char *s){ while (*s) debug_char(*s++); } - + void debug_byte(char b){