diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2008-07-02 12:32:13 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2008-07-02 12:32:13 +0000 |
commit | 5f4dbf9ca9ba32bfeefa3dbab412867dc63f0892 (patch) | |
tree | a178d1e424124786e3f5e16e8e807a638812ed58 /test/testbmk.c | |
parent | 8a02a67d832e1c3515f91f97dcb2a2b61be3268f (diff) | |
download | ChibiOS-5f4dbf9ca9ba32bfeefa3dbab412867dc63f0892.tar.gz ChibiOS-5f4dbf9ca9ba32bfeefa3dbab412867dc63f0892.tar.bz2 ChibiOS-5f4dbf9ca9ba32bfeefa3dbab412867dc63f0892.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@328 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'test/testbmk.c')
-rw-r--r-- | test/testbmk.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/test/testbmk.c b/test/testbmk.c index 2dc349d92..b0f44f315 100644 --- a/test/testbmk.c +++ b/test/testbmk.c @@ -25,9 +25,9 @@ __attribute__((noinline)) static unsigned int msg_loop_test(Thread *tp) {
uint32_t n = 0;
- systime_t start = test_wait_tick();
- systime_t end = start + 1000;
- while (chSysInTimeWindow(start, end)) {
+ test_wait_tick();
+ test_start_timer(1000);
+ while (!test_timer_done) {
(void)chMsgSend(tp, 0);
n++;
#if defined(WIN32)
@@ -164,10 +164,10 @@ static void bmk4_teardown(void) { static void bmk4_execute(void) {
- systime_t start = test_wait_tick();
- systime_t end = start + 1000;
uint32_t n = 0;
- while (chSysInTimeWindow(start, end)) {
+ test_wait_tick();
+ test_start_timer(1000);
+ while (!test_timer_done) {
threads[0] = chThdCreate(chThdGetPriority()-1, 0, wa[0], STKSIZE, thread2, NULL);
chThdWait(threads[0]);
n++;
@@ -203,10 +203,10 @@ static void bmk5_execute(void) { static Queue iq;
chIQInit(&iq, ib, sizeof(ib), NULL);
- systime_t start = test_wait_tick();
- systime_t end = start + 1000;
uint32_t n = 0;
- while (chSysInTimeWindow(start, end)) {
+ test_wait_tick();
+ test_start_timer(1000);
+ while (!test_timer_done) {
chIQPutI(&iq, 0);
chIQPutI(&iq, 1);
chIQPutI(&iq, 2);
|