diff options
| author | Meco Man <[email protected]> | 2024-08-13 19:36:32 -0400 |
|---|---|---|
| committer | Meco Man <[email protected]> | 2024-08-15 04:08:33 -0400 |
| commit | c90179beb535e38b2964daeed084af9969c314c2 (patch) | |
| tree | 3b965570980abaf087aaab2a4417283139410a92 /examples/libc | |
| parent | 3e246caa1c672a5d42fb1db6620b16644a7ec58c (diff) | |
删除rt_thread_sleep遗留
Diffstat (limited to 'examples/libc')
| -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) |
