]> git.cryptolib.org Git - avr-crypto-lib.git/blobdiff - test_src/debug.c
backporting uart_i and cli
[avr-crypto-lib.git] / test_src / debug.c
index 3b5fee4c74c71a3b5e873acd21b013841245f491..128b4bcb2278aa9cc921562ca53fe7ed681d0ac6 100644 (file)
@@ -1,6 +1,6 @@
 /* debug.c */
 /*
-    This file is part of the Crypto-avr-lib/microcrypt-lib.
+    This file is part of the AVR-Crypto-Lib.
     Copyright (C) 2008  Daniel Otte (daniel.otte@rub.de)
 
     This program is free software: you can redistribute it and/or modify
@@ -24,7 +24,7 @@
 #include "config.h"
 
 #if DEBUG == uart
- #include "uart.h"
+ #include "uart_i.h"
 #else
   #error "Your DEBUG methode is not suported!"
 #endif
@@ -32,7 +32,7 @@
 #ifdef DEBUG
  void debug_init(void){
  #if DBUG==uart
-  uart_init();
+  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){