Can I call _lwmsgq_send from an ISR?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Can I call _lwmsgq_send from an ISR?

Jump to solution
764 Views
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!

Tags (2)
0 Kudos
1 Solution
678 Views
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

View solution in original post

0 Kudos
3 Replies
679 Views
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 Kudos
678 Views
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 Kudos
678 Views
danielchen
NXP TechSupport
NXP TechSupport

Yes.

Regards

Daniel