Function riot_sys::msg_send_int

source ·
pub unsafe extern "C" fn msg_send_int(
    m: *mut msg_t,
    target_pid: kernel_pid_t
) -> c_int
Expand description

@brief Send message from interrupt.

Will be automatically chosen instead of msg_send() if called from an interrupt/ISR.

The value of m->sender_pid is set to @ref KERNEL_PID_ISR.

@see msg_sent_by_int()

@param[in] m Pointer to preallocated @ref msg_t structure, must not be NULL. @param[in] target_pid PID of target thread.

@return 1, if sending was successful @return 0, if receiver is not waiting and block == 0 @return -1, on error (invalid PID)