From 0d96f5c78e54d267ef1ca230fe20af1ca090e1d6 Mon Sep 17 00:00:00 2001 From: gdisirio Date: Sun, 16 Jun 2013 12:21:30 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/kernel_3_dev@5859 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- test/testevt.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'test/testevt.c') diff --git a/test/testevt.c b/test/testevt.c index 0a014374e..d1291c406 100644 --- a/test/testevt.c +++ b/test/testevt.c @@ -166,7 +166,7 @@ static void evt2_execute(void) { * Test on chEvtWaitOne() with wait. */ test_wait_tick(); - target_time = chTimeNow() + MS2ST(50); + target_time = chVTGetSystemTime() + MS2ST(50); threads[0] = chThdCreateStatic(wa[0], WA_SIZE, chThdGetPriority() - 1, thread1, chThdSelf()); m = chEvtWaitOne(ALL_EVENTS); @@ -189,7 +189,7 @@ static void evt2_execute(void) { * Test on chEvtWaitAny() with wait. */ test_wait_tick(); - target_time = chTimeNow() + MS2ST(50); + target_time = chVTGetSystemTime() + MS2ST(50); threads[0] = chThdCreateStatic(wa[0], WA_SIZE, chThdGetPriority() - 1, thread1, chThdSelf()); m = chEvtWaitAny(ALL_EVENTS); @@ -207,7 +207,7 @@ static void evt2_execute(void) { chEvtRegisterMask(&es1, &el1, 1); chEvtRegisterMask(&es2, &el2, 4); test_wait_tick(); - target_time = chTimeNow() + MS2ST(50); + target_time = chVTGetSystemTime() + MS2ST(50); threads[0] = chThdCreateStatic(wa[0], WA_SIZE, chThdGetPriority() - 1, thread2, "A"); m = chEvtWaitAll(5); -- cgit v1.2.3