Separate tasks for serial port transmit and receive

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Separate tasks for serial port transmit and receive

1,470件の閲覧回数
getuptime
Contributor I

Does anyone know how to set up separate tasks for serial transmit and receive or if it's necessary? Can you assign different file pointers for tx and rx? Or do you have to use a semaphore to make sure that your transmit and receive  tasks don't access the port simultaneously?

Thanks.

0 件の賞賛
返信
1 返信

674件の閲覧回数
CarlFST60L
Senior Contributor II

You can run two comm ports, you can run them seperately with their own threads (tasks), you can assume that all MQX RToS functions are thread safe and re entry safe unless otherwise specified.

 

 Looks like you probably need to do some research on programming multithreaded systems. Maybe start by reading the MQXUG.pdf

0 件の賞賛
返信