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.

sysbios能否实现一个发送多个接收的邮箱,每次发送多个reader都能接收到?

Other Parts Discussed in Thread: SYSBIOS

如题

  • sysbios是操作系统,并不支持你说的这些功能。基于sysbios的IPC module也不支持这样的功能,可以根据你使用的芯片看看硬件是否有广播的中断信号支持你的要求,即一个中断信号同时给到多个不同的core,这可以实现一个信号同时通知到不同core接收。

  • 根据任务优先级,只有1个reader 会优先运行,拿到当前msg,其他reader可以拿到后面的msg,但是这样调度设计感觉比较混乱。

    你可以自己写个简单程序测试下

    writerTask()

    {Mailbox_post(mbox, &msgA, FOREVER);}

    readerTask1()

    Mailbox_pend(mbox, &msgB, BIOS_NO_WAIT);

    readerTask2()

    Mailbox_pend(mbox, &msgB, BIOS_NO_WAIT);