This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

serial port under RTX-51

Hi!
I have a problem with a program in C for serial comunication under RTX-51.
I have 2 task, the first is reading from serial port and i need to save the "char" in a share memory for the next task can to take it and start operating.
How can i do it?
Thanks

Parents
  • I would expect the manual for RTX-51 to contain similar information as the manual for the ARM version of RTX.

    You either implement a ring buffer with a read position and a write position, letting the two tasks interact without stepping on each others toes. One task owns the read position and one task owns the write position. Or you make use of messages and send received characters to the consumer.

Reply
  • I would expect the manual for RTX-51 to contain similar information as the manual for the ARM version of RTX.

    You either implement a ring buffer with a read position and a write position, letting the two tasks interact without stepping on each others toes. One task owns the read position and one task owns the write position. Or you make use of messages and send received characters to the consumer.

Children