* @brief This function will send an mail to the mailbox object. If there is a thread suspended on the mailbox, * the thread will be resumed. * * @note When using this function to send a mail, if the mailbox is fully used, this function will return an error * code immediately without waiting time. * By contrast, the rt_mb_send_wait() function is set a timeo
| 2736 | * If the return value is any other values, it means that the mailbox detach failed. |
| 2737 | */ |
| 2738 | rt_err_t rt_mb_send(rt_mailbox_t mb, rt_ubase_t value) |
| 2739 | { |
| 2740 | return rt_mb_send_wait(mb, value, 0); |
| 2741 | } |
| 2742 | RTM_EXPORT(rt_mb_send); |
| 2743 | |
| 2744 | rt_err_t rt_mb_send_interruptible(rt_mailbox_t mb, rt_ubase_t value) |