Can I call _lwmsgq_send from an ISR?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Can I call _lwmsgq_send from an ISR?

跳至解决方案
1,618 次查看
m4l490n
Contributor V

Sorry for the question but I come from a FreeRTOS environment and that RTOS has a different set of APIs that shall be used if you need to call an RTOS API from an ISR. I know that MXQ and FreeRTOS are totally different, but I don't know if this case is applicable.

Thanks!

标记 (2)
0 项奖励
回复
1 解答
1,532 次查看
danielchen
NXP TechSupport
NXP TechSupport

Hi   Manuel :

for msgq, fuctions that ISRs should not call

_lwmsgq_send() (when LWMSGQ_SEND_BLOCK_ON_FULL or
LWMSGQ_SEND_BLOCK_ON_SEND flags used).

Regards

Daniel

在原帖中查看解决方案

0 项奖励
回复
3 回复数
1,533 次查看
danielchen
NXP TechSupport
NXP TechSupport

Hi   Manuel :

for msgq, fuctions that ISRs should not call

_lwmsgq_send() (when LWMSGQ_SEND_BLOCK_ON_FULL or
LWMSGQ_SEND_BLOCK_ON_SEND flags used).

Regards

Daniel

0 项奖励
回复
1,532 次查看
m4l490n
Contributor V

danielchen@fsl

So, if I understand correctly if I don't have either of those two flags, meaning that I don't block in any manner any task from an ISR, is it ok to call _lwmsgq_send() from an ISR?

0 项奖励
回复
1,532 次查看
danielchen
NXP TechSupport
NXP TechSupport

Yes.

Regards

Daniel