]> git.cryptolib.org Git - avr-crypto-lib.git/blobdiff - uart.c
make process changed and modularised
[avr-crypto-lib.git] / uart.c
diff --git a/uart.c b/uart.c
index c0365e7114a29cf8455e3cd27615fbcca4799037..68aaac48e006d7ee48bbc3248586e1f42ba45453 100644 (file)
--- a/uart.c
+++ b/uart.c
@@ -19,7 +19,7 @@
 #endif
 
 
-#define UART_BAUD_CALC(UART_BAUD_RATE,F_OSC) ((F_CPU)/((UART_BAUD_RATE)*16L)-1)
+#define UART_BAUD_CALC(UART_BAUD_RATE,F_OSC) ((F_OSC)/((UART_BAUD_RATE)*16L)-1)
 
 
 #ifdef UART_INTERRUPT
@@ -132,7 +132,7 @@ void uart_hexdump(void* buf, int len)
                uart_putc(table[((*((char*)buf))>>4)&0xf]);
                uart_putc(table[(*((char*)buf))&0xf]);
                uart_putc(' ');
-               ++buf;
+               buf=(char*)buf+1;
        }
 }