]> git.cryptolib.org Git - avr-crypto-lib.git/blobdiff - test_src/performance_test.h
adjusting test system uart reference
[avr-crypto-lib.git] / test_src / performance_test.h
index 6c0d13cc55df6c033a736945acc36409ab5ccd35..867ef995af5150866c107835d2fdc1075b96f4b8 100644 (file)
@@ -1,6 +1,6 @@
 /* performance_test.h */
 /*
-    This file is part of the This file is part of the AVR-Crypto-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
 
 #include <stdint.h>
 #include <avr/pgmspace.h>
+#include <avr/io.h>
+#include <avr/interrupt.h>
+
+
+#define START_TIMER  TCCR1B=1
+#define STOP_TIMER   TCCR1B=0
 
 void calibrateTimer(void);
 void startTimer(uint8_t granularity);
 uint64_t stopTimer(void);
-void getOverhead(uint16_t* constoh, uint16_t* intoh);
+void getOverhead(uint16_t *constoh, uint16_t *intoh);
 
-void print_time_P(PGM_P s, uint64_t t);
+void print_time_P(PGM_P s, uint32_t t);
 void print_overhead(void);
 
 #endif /*PERFORMANCE_TEST_H_*/