]> git.cryptolib.org Git - avr-crypto-lib.git/blobdiff - test_src/debug.c
fixing some warnings (AES); simplifyning AES headers (now simply include "aes.h"...
[avr-crypto-lib.git] / test_src / debug.c
index 128b4bcb2278aa9cc921562ca53fe7ed681d0ac6..65264795c00526edfa9f467fcafe525e4a7ba318 100644 (file)
 ****************************/
 #include "config.h"
 
-#if DEBUG == uart
+#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
+ #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){
        while (*s)
                debug_char(*s++);
  }
+
 
 
  void debug_byte(char b){