Browse Source

tests: test_vtimer_msg_diff: add some timers, change max values

dev/timer
Kaspar Schleiser 9 years ago
parent
commit
9ee346c9d3
  1. 13
      tests/test_vtimer_msg_diff/main.c

13
tests/test_vtimer_msg_diff/main.c

@ -28,8 +28,8 @@
#include "thread.h"
#include "msg.h"
#define MAXCOUNT 20
#define MAXDIFF 500
#define MAXCOUNT 100
#define MAXDIFF 10000
char timer_stack[KERNEL_CONF_STACKSIZE_PRINTF*4];
@ -43,9 +43,12 @@ struct timer_msg {
timex_t now;
struct timer_msg timer_msgs[] = { { .interval = { .seconds = 1, .microseconds = 0}, .msg = "T1", .start={0}, .count=0 },
{ .interval = { .seconds = 3, .microseconds = 0}, .msg = "T2", .start={0}, .count=0 },
{ .interval = { .seconds = 5, .microseconds = 0}, .msg = "T3", .start={0}, .count=0 },
struct timer_msg timer_msgs[] = { { .interval = { .seconds = 0, .microseconds = 100000}, .msg = "T1", .start={0}, .count=0 },
{ .interval = { .seconds = 0, .microseconds = 200000}, .msg = "T2", .start={0}, .count=0 },
{ .interval = { .seconds = 0, .microseconds = 300000}, .msg = "T3", .start={0}, .count=0 },
{ .interval = { .seconds = 0, .microseconds = 500000}, .msg = "T4", .start={0}, .count=0 },
{ .interval = { .seconds = 0, .microseconds = 700000}, .msg = "T5", .start={0}, .count=0 },
{ .interval = { .seconds = 1, .microseconds = 100000}, .msg = "T6", .start={0}, .count=0 },
};
void timer_thread(void)

Loading…
Cancel
Save