summaryrefslogtreecommitdiff
path: root/components/libc/compilers
diff options
context:
space:
mode:
authorguo <[email protected]>2022-12-16 18:38:28 +0800
committerGitHub <[email protected]>2022-12-16 18:38:28 +0800
commit68ca9f07a60ad5cbe52b37b52299327b6246e7f7 (patch)
treeb990c35d5b20e515adb604b85b2b10dae0cf034b /components/libc/compilers
parent3ea5166376dbc05722d793c3183c15b3a01e7f3a (diff)
[rt-smart] 弱化 RT_USING_LWP,使用 RT_USING_SMART 作为宏配置 (#6740)
* [dfs] sync cromfs * [rt-smart]Weaken RT_USING_LWP, use RT_USING_SMART as macro configuration * [format] fix some format issue.
Diffstat (limited to 'components/libc/compilers')
-rw-r--r--components/libc/compilers/common/ctime.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/components/libc/compilers/common/ctime.c b/components/libc/compilers/common/ctime.c
index eb755e2263..e1694bda36 100644
--- a/components/libc/compilers/common/ctime.c
+++ b/components/libc/compilers/common/ctime.c
@@ -26,7 +26,7 @@
#include <rtthread.h>
#include <rthw.h>
#include <unistd.h>
-#ifdef RT_USING_LWP
+#ifdef RT_USING_SMART
#include "lwp.h"
#endif
#ifdef RT_USING_POSIX_DELAY
@@ -886,7 +886,7 @@ struct timer_obj
rt_uint32_t reload; /* Reload value in ms */
rt_uint32_t status;
int sigev_signo;
-#ifdef RT_USING_LWP
+#ifdef RT_USING_SMART
pid_t pid;
#endif
};
@@ -906,7 +906,7 @@ static void rtthread_timer_wrapper(void *timerobj)
if (timer->reload)
rt_timer_control(&timer->timer, RT_TIMER_CTRL_SET_TIME, &(timer->reload));
-#ifdef RT_USING_LWP
+#ifdef RT_USING_SMART
sys_kill(timer->pid, timer->sigev_signo);
#else
if(timer->sigev_notify_function != RT_NULL)
@@ -948,7 +948,7 @@ int timer_create(clockid_t clockid, struct sigevent *evp, timer_t *timerid)
rt_snprintf(timername, RT_NAME_MAX, "psx_tm%02d", num++);
num %= 100;
timer->sigev_signo = evp->sigev_signo;
-#ifdef RT_USING_LWP
+#ifdef RT_USING_SMART
timer->pid = lwp_self()->pid;
#endif
timer->sigev_notify_function = evp->sigev_notify_function;