* \author Bernardo Innocenti <bernie@develer.com>
*/
-#ifdef _TEST
- #include "timer.c"
- #include "mware/event.c"
- #include "os/hptime.c"
+#include <cfg/test.h>
-#else
- #include <drv/timer.c>
- #include <mware/event.c>
- #include <drv/wdt.h>
+#include <drv/timer.h>
+#include <drv/wdt.h>
-#endif
+#include <mware/event.h>
static void timer_test_constants(void)
}
}
+#ifdef _TEST
+
+#include "timer.c"
+#include "mware/event.c"
+#include "os/hptime.c"
+
int main(void)
{
wdt_init(7);
timer_test_poll();
return 0;
}
+#endif
+