diff options
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/libc/ex6.c | 2 | ||||
| -rw-r--r-- | examples/libc/ex7.c | 2 | ||||
| -rw-r--r-- | examples/libc/file.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/examples/libc/ex6.c b/examples/libc/ex6.c index ba687aa46f..20ab0d8e5d 100644 --- a/examples/libc/ex6.c +++ b/examples/libc/ex6.c @@ -12,7 +12,7 @@ #include <pthread.h> #include <unistd.h> -#define usleep rt_thread_sleep +#define usleep rt_thread_delay static void *test_thread(void *v_param) { return NULL; diff --git a/examples/libc/ex7.c b/examples/libc/ex7.c index d1f05dbdcd..b1969c8663 100644 --- a/examples/libc/ex7.c +++ b/examples/libc/ex7.c @@ -18,7 +18,7 @@ #include <sys/time.h> #include <unistd.h> -#define usleep rt_thread_sleep +#define usleep rt_thread_delay /* Our event variable using a condition variable contruct. */ typedef struct { diff --git a/examples/libc/file.c b/examples/libc/file.c index 878d3a98d7..918fca3b86 100644 --- a/examples/libc/file.c +++ b/examples/libc/file.c @@ -57,7 +57,7 @@ FINSH_FUNCTION_EXPORT(libc_lseek, lseek test for libc); void sleep(int tick) { - rt_thread_sleep(tick); + rt_thread_delay(tick); } int libc_fseek(void) |
