diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2013-06-16 12:21:30 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2013-06-16 12:21:30 +0000 |
commit | 0d96f5c78e54d267ef1ca230fe20af1ca090e1d6 (patch) | |
tree | 7090525820ed5cc9127e6d72aff8dc3dd37f563b /test/testevt.c | |
parent | 9c9c52f753a9caf51189ad9e1293476f2384676b (diff) | |
download | ChibiOS-0d96f5c78e54d267ef1ca230fe20af1ca090e1d6.tar.gz ChibiOS-0d96f5c78e54d267ef1ca230fe20af1ca090e1d6.tar.bz2 ChibiOS-0d96f5c78e54d267ef1ca230fe20af1ca090e1d6.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/kernel_3_dev@5859 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'test/testevt.c')
-rw-r--r-- | test/testevt.c | 6 |
1 files changed, 3 insertions, 3 deletions
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);
|