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.

CC1310 如何实现两个任务的调度

Other Parts Discussed in Thread: CC1310

1、CC1310 如何实现两个任务的调度,有没有例程?

2、串口调用API放在主程序中正常初始化,但是,接收任务中在调用串口收发函数不能正常运行,需要在任务功能函数初始化串口不知道具体什么原因

  • 可以通过event或者queue来实现多任务之间的消息传递

    串口不论是接收或者发送都需要初始化的,如何使用可以参考TIRTOS里面对uart的口的例程

    可以用一个新的task来专门负责uart口,注意在main函数里添加uart的task的初始化就可以了    

    UartTask_init();