]> git.cryptolib.org Git - avr-crypto-lib.git/blobdiff - test_src/debug.c
adjusting test system debug uart reference
[avr-crypto-lib.git] / test_src / debug.c
index 128b4bcb2278aa9cc921562ca53fe7ed681d0ac6..799ccdf5762b499b65e504725e8b7f943bfbf2a7 100644 (file)
 ****************************/
 #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(chars){
+
+ void debug_str(char *s){
        while (*s)
                debug_char(*s++);
  }
+
 
 
  void debug_byte(char b){