This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[参考译文] RTOS/MSP-EXP432E401Y:使用不带缓冲器的 TI-RTOS 邮箱、只需向另一个任务发送消息。

Guru**** 2616675 points
请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/microcontrollers/msp-low-power-microcontrollers-group/msp430/f/msp-low-power-microcontroller-forum/672195/rtos-msp-exp432e401y-using-ti-rtos-mailbox-without-buffer-just-to-message-another-task

器件型号:MSP-EXP432E401Y

工具/软件:TI-RTOS

您好!

是否有一种智能方式将消息从 netIPAddrHook 发送到正在执行 HTTP 请求的任务?

(不是使用 Task_create()函数)

void netIPAddrHook (uint32_t ipaddr、unsigned int IfIdx、unsigned int fAdd)
{
....
if (fAdd && createTask){
//向 httpTask()发送消息;
}
...
}

void httpTaskFxn (uint32_t arg0、uint32_t arg1)
{

if (来自 netIPAddrHook 的消息){
}

谢谢!

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    您好、Simon、

    非任务函数和任务函数之间的消息可由全局变量传递。 这取决于非任务的调用时间和次数、以及应该如何与任务函数交互。