diff options
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();
|