can I call ke_msg_send() in an interrupt?

3 posts / 0 new
Last post
marcodg
Offline
Last seen:2 years 8 months ago
加入:2015-01-14 17:58
can I call ke_msg_send() in an interrupt?

Can I allocate a message and send it in an interrupt? (It doesn't actually get dispatched at send time, right? That happens as part of the main-loop?)

thanks,
marco

Device:
MT_dialog
Offline
Last seen:1 week 23 hours ago
工作人员
加入:2015-06-08 11:34
Hi marcodg,

Hi marcodg,

是的,你可以,thats right the message is allocated at the interrupt and dispatched when the kernel is awake. Yes, the message dispatches when during the main loop. But, you must consider the fact that after you send the message the proccessor is going to stay awake until the BLE event arrives and finishes. The thing is that you will consume more power if you wait until the BLE event (because of the turned on proccessor) than waking the BLE up your self in a external interrupt.

Thanks MT_dialog

marcodg
Offline
Last seen:2 years 8 months ago
加入:2015-01-14 17:58
Thanks for the info. Keeping

Thanks for the info. Keeping the CPU awake is not a concern for me when this happens.
marco

Topic locked