diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2008-10-26 10:45:42 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2008-10-26 10:45:42 +0000 |
commit | 3c4cadc596f201c3377de40a62685b3b9d7b9de1 (patch) | |
tree | 1b02fbfeb8823d24ad53a6860a070fd5e0a70bce /test | |
parent | 79280551050445d86045df9e160af2f9c85b40a3 (diff) | |
download | ChibiOS-3c4cadc596f201c3377de40a62685b3b9d7b9de1.tar.gz ChibiOS-3c4cadc596f201c3377de40a62685b3b9d7b9de1.tar.bz2 ChibiOS-3c4cadc596f201c3377de40a62685b3b9d7b9de1.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@484 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'test')
-rw-r--r-- | test/test.c | 2 | ||||
-rw-r--r-- | test/testmtx.c | 14 |
2 files changed, 8 insertions, 8 deletions
diff --git a/test/test.c b/test/test.c index eacb2a9e3..c56a23552 100644 --- a/test/test.c +++ b/test/test.c @@ -250,7 +250,7 @@ msg_t TestThread(void *p) { i = 0;
while (tests[i]) {
#if DELAY_BETWEEN_TESTS > 0
- chThdSleep(MS2ST(DELAY_BETWEEN_TESTS));
+ chThdSleepMilliseconds(DELAY_BETWEEN_TESTS);
#endif
test_println("---------------------------------------------------------------------------");
test_print("--- Test Case ");
diff --git a/test/testmtx.c b/test/testmtx.c index f389ebe6f..6c1beea28 100644 --- a/test/testmtx.c +++ b/test/testmtx.c @@ -85,7 +85,7 @@ static void mtx2_teardown(void) { static msg_t thread2(void *p) {
- chThdSleep(MS2ST(10));
+ chThdSleepMilliseconds(10);
chMtxLock(&m1);
chMtxUnlock();
test_emit_token(*(char *)p);
@@ -95,7 +95,7 @@ static msg_t thread2(void *p) { static msg_t thread3(void *p) {
chMtxLock(&m1);
- chThdSleep(MS2ST(40));
+ chThdSleepMilliseconds(40);
chMtxUnlock();
test_emit_token(*(char *)p);
return 0;
@@ -103,7 +103,7 @@ static msg_t thread3(void *p) { static msg_t thread4(void *p) {
- chThdSleep(MS2ST(20));
+ chThdSleepMilliseconds(20);
test_cpu_pulse(50);
test_emit_token(*(char *)p);
return 0;
@@ -156,7 +156,7 @@ static msg_t thread5(void *p) { static msg_t thread6(void *p) {
- chThdSleep(MS2ST(10));
+ chThdSleepMilliseconds(10);
chMtxLock(&m2);
test_cpu_pulse(20);
chMtxLock(&m1);
@@ -170,7 +170,7 @@ static msg_t thread6(void *p) { static msg_t thread7(void *p) {
- chThdSleep(MS2ST(20));
+ chThdSleepMilliseconds(20);
chMtxLock(&m2);
test_cpu_pulse(50);
chMtxUnlock();
@@ -180,7 +180,7 @@ static msg_t thread7(void *p) { static msg_t thread8(void *p) {
- chThdSleep(MS2ST(40));
+ chThdSleepMilliseconds(40);
test_cpu_pulse(200);
test_emit_token(*(char *)p);
return 0;
@@ -188,7 +188,7 @@ static msg_t thread8(void *p) { static msg_t thread9(void *p) {
- chThdSleep(MS2ST(50));
+ chThdSleepMilliseconds(50);
chMtxLock(&m2);
test_cpu_pulse(50);
chMtxUnlock();
|