diff --git a/components/net/lwip/port/sys_arch.c b/components/net/lwip/port/sys_arch.c index 493ba4e893..4a952cd493 100644 --- a/components/net/lwip/port/sys_arch.c +++ b/components/net/lwip/port/sys_arch.c @@ -410,7 +410,7 @@ u32_t sys_arch_mbox_fetch(sys_mbox_t *mbox, void **msg, u32_t timeout) } /*When the waiting msg is generated by the application through signaling mechanisms, only by using interruptible mode can the program be made runnable again*/ - ret = rt_mb_recv_interruptibale(*mbox, (rt_ubase_t *)msg, t); + ret = rt_mb_recv_interruptible(*mbox, (rt_ubase_t *)msg, t); if(ret != RT_EOK) { return SYS_ARCH_TIMEOUT; diff --git a/include/rtthread.h b/include/rtthread.h index d4fea8fe7a..8c21e02312 100644 --- a/include/rtthread.h +++ b/include/rtthread.h @@ -443,7 +443,7 @@ rt_err_t rt_mb_send_wait_killable(rt_mailbox_t mb, rt_int32_t timeout); rt_err_t rt_mb_urgent(rt_mailbox_t mb, rt_ubase_t value); rt_err_t rt_mb_recv(rt_mailbox_t mb, rt_ubase_t *value, rt_int32_t timeout); -rt_err_t rt_mb_recv_interruptibale(rt_mailbox_t mb, rt_ubase_t *value, rt_int32_t timeout); +rt_err_t rt_mb_recv_interruptible(rt_mailbox_t mb, rt_ubase_t *value, rt_int32_t timeout); rt_err_t rt_mb_recv_killable(rt_mailbox_t mb, rt_ubase_t *value, rt_int32_t timeout); rt_err_t rt_mb_control(rt_mailbox_t mb, int cmd, void *arg); #endif /* RT_USING_MAILBOX */ @@ -481,7 +481,7 @@ rt_err_t rt_mq_delete(rt_mq_t mq); #endif /* RT_USING_HEAP */ rt_err_t rt_mq_send(rt_mq_t mq, const void *buffer, rt_size_t size); -rt_err_t rt_mq_send_interrupt(rt_mq_t mq, const void *buffer, rt_size_t size); +rt_err_t rt_mq_send_interruptible(rt_mq_t mq, const void *buffer, rt_size_t size); rt_err_t rt_mq_send_killable(rt_mq_t mq, const void *buffer, rt_size_t size); rt_err_t rt_mq_send_wait(rt_mq_t mq, const void *buffer, diff --git a/src/ipc.c b/src/ipc.c index 4c74ab4877..fe85c9d56c 100644 --- a/src/ipc.c +++ b/src/ipc.c @@ -2816,11 +2816,11 @@ rt_err_t rt_mb_recv(rt_mailbox_t mb, rt_ubase_t *value, rt_int32_t timeout) } RTM_EXPORT(rt_mb_recv); -rt_err_t rt_mb_recv_interruptibale(rt_mailbox_t mb, rt_ubase_t *value, rt_int32_t timeout) +rt_err_t rt_mb_recv_interruptible(rt_mailbox_t mb, rt_ubase_t *value, rt_int32_t timeout) { return _rt_mb_recv(mb, value, timeout, RT_INTERRUPTIBLE); } -RTM_EXPORT(rt_mb_recv_interruptibale); +RTM_EXPORT(rt_mb_recv_interruptible); rt_err_t rt_mb_recv_killable(rt_mailbox_t mb, rt_ubase_t *value, rt_int32_t timeout) { @@ -3459,11 +3459,11 @@ rt_err_t rt_mq_send(rt_mq_t mq, const void *buffer, rt_size_t size) } RTM_EXPORT(rt_mq_send); -rt_err_t rt_mq_send_interrupt(rt_mq_t mq, const void *buffer, rt_size_t size) +rt_err_t rt_mq_send_interruptible(rt_mq_t mq, const void *buffer, rt_size_t size) { return rt_mq_send_wait_interruptible(mq, buffer, size, 0); } -RTM_EXPORT(rt_mq_send_interrupt); +RTM_EXPORT(rt_mq_send_interruptible); rt_err_t rt_mq_send_killable(rt_mq_t mq, const void *buffer, rt_size_t size) {