OS_Msg_Send_I (msg_cb, message)
OS_Msg_Send_I (msg_cb, message)
Send message through msg_cb from interrupt routine. If msg_cb already exists then it will be overwritten.
OS_ENABLE_INT_MSG constant must be defined in OSAcfg.h
Only in interrupt
msg_cb |
Pointer to message descriptor. Variable of OST_MSG_CB type |
message |
pointer to message body (OST_MSG) |
bEventError |
If msg_cb is not free then OS_IsEventError will return true |
OST_MSG_CB msg_cb; void interrupt isr(void) { OS_EnterInt(); /*...*/ OS_Msg_Send_I (msg_cb, (OST_MSG*)&PORTB); /*...*/ OS_LeaveInt(); }
OS_IntSendMsgNoWait