X-Git-Url: https://git.cryptolib.org/?a=blobdiff_plain;f=test_src%2Fdebug.c;h=797fd2e4cecce4ea3a0991ad44f6ef785e449913;hb=f63427e84c047aafe16f6ab3b5452d4d2993241d;hp=1e07451b8e3bb14b65d41f5f0eb6f3bf76142b43;hpb=572b35bb7409fb362441e0812cb62eab9f2411f0;p=avr-crypto-lib.git diff --git a/test_src/debug.c b/test_src/debug.c index 1e07451..797fd2e 100644 --- a/test_src/debug.c +++ b/test_src/debug.c @@ -23,35 +23,35 @@ ****************************/ #include "config.h" -#if DEBUG == uart - #include "uart.h" +#if DEBUG_METHOD == uart + #include "uart_i.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){