aboutsummaryrefslogtreecommitdiffstats
path: root/test/test.c
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2009-03-10 15:31:58 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2009-03-10 15:31:58 +0000
commitda4f9beaee8f1f8f344012b4d9a122462a6c802e (patch)
treeecb2cc0d9efd39801f17f8262dc722e48f50456e /test/test.c
parenta2bab9c63d848ccfce1440afd40e1eed7b2955ef (diff)
downloadChibiOS-da4f9beaee8f1f8f344012b4d9a122462a6c802e.tar.gz
ChibiOS-da4f9beaee8f1f8f344012b4d9a122462a6c802e.tar.bz2
ChibiOS-da4f9beaee8f1f8f344012b4d9a122462a6c802e.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@827 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'test/test.c')
-rw-r--r--test/test.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/test.c b/test/test.c
index be3c8d9c5..3be813bb2 100644
--- a/test/test.c
+++ b/test/test.c
@@ -146,7 +146,7 @@ bool_t _test_assert_sequence(char *expected) {
bool_t _test_assert_time_window(systime_t start, systime_t end) {
- return _test_assert(chSysInTimeWindow(start, end), "time window error");
+ return _test_assert(chTimeIsWithin(start, end), "time window error");
}
/*
@@ -171,8 +171,8 @@ void test_wait_threads(void) {
void test_cpu_pulse(unsigned ms) {
systime_t duration = MS2ST(ms);
- systime_t start = chSysGetTime();
- while (chSysInTimeWindow(start, start + duration)) {
+ systime_t start = chTimeNow();
+ while (chTimeIsWithin(start, start + duration)) {
#if defined(WIN32)
ChkIntSources();
#endif
@@ -182,7 +182,7 @@ void test_cpu_pulse(unsigned ms) {
systime_t test_wait_tick(void) {
chThdSleep(1);
- return chSysGetTime();
+ return chTimeNow();
}
/*