/* debug.c */
/*
This file is part of the AVR-Crypto-Lib.
- Copyright (C) 2008 Daniel Otte (daniel.otte@rub.de)
+ Copyright (C) 2006-2015 Daniel Otte (bg@nerilex.org)
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
****************************/
#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){