projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Reformat.
[bertos.git]
/
bertos
/
drv
/
timer_test.c
diff --git
a/bertos/drv/timer_test.c
b/bertos/drv/timer_test.c
index 9c649a31f6321305f55acd8cda8e69b2d7e7ddf0..c3414d79f697dfca648042873be8e70431e61cc2 100644
(file)
--- a/
bertos/drv/timer_test.c
+++ b/
bertos/drv/timer_test.c
@@
-34,6
+34,7
@@
*
* \version $Id$
* \author Bernie Innocenti <bernie@codewiz.org>
*
* \version $Id$
* \author Bernie Innocenti <bernie@codewiz.org>
+ *
*/
#include <cfg/test.h>
*/
#include <cfg/test.h>
@@
-67,7
+68,9
@@
static void timer_test_constants(void)
kprintf("ticks_to_us(10000) = %lu\n", (unsigned long)ticks_to_us(10000));
kprintf("\n");
kprintf("hptime_to_us(100) = %lu\n", (unsigned long)hptime_to_us(100));
kprintf("ticks_to_us(10000) = %lu\n", (unsigned long)ticks_to_us(10000));
kprintf("\n");
kprintf("hptime_to_us(100) = %lu\n", (unsigned long)hptime_to_us(100));
- kprintf("hptime_to_us(10000)= %lu\n", (unsigned long)hptime_to_us(10000));
+ #if (SIZEOF_HPTIME_T > 1)
+ kprintf("hptime_to_us(10000)= %lu\n", (unsigned long)hptime_to_us(10000));
+ #endif
kprintf("us_to_hptime(100) = %lu\n", (unsigned long)us_to_hptime(100));
kprintf("us_to_hptime(10000)= %lu\n", (unsigned long)us_to_hptime(10000));
}
kprintf("us_to_hptime(100) = %lu\n", (unsigned long)us_to_hptime(100));
kprintf("us_to_hptime(10000)= %lu\n", (unsigned long)us_to_hptime(10000));
}
@@
-131,7
+134,7
@@
static void timer_test_poll(void)
int timer_testSetup(void)
{
IRQ_ENABLE;
int timer_testSetup(void)
{
IRQ_ENABLE;
- wdt_
ini
t(7);
+ wdt_
star
t(7);
timer_init();
kdbg_init();
return 0;
timer_init();
kdbg_init();
return 0;
@@
-154,12
+157,5
@@
int timer_testTearDown(void)
return 0;
}
return 0;
}
-#include TEST_ONLY(drv/timer.c)
-#include TEST_ONLY(drv/kdebug.c)
-#include TEST_ONLY(mware/event.c)
-#include TEST_ONLY(mware/formatwr.c)
-#include TEST_ONLY(mware/hex.c)
-#include TEST_ONLY(os/hptime.c)
-
TEST_MAIN(timer);
TEST_MAIN(timer);