AnsweredAssumed Answered

Trying to use 2 serial ports with MQX. Need commands similar to Interniche.

Question asked by Terry Tyndall on Jun 6, 2010
Latest reply on Jul 29, 2014 by David E Seymour

I'm using MQX 3.5 and a M52259demo board. I having trouble simply adding another serial port (polling type) while having the existing terminal functionality on ttya. I'm an Interniche user that finds the Interniche code easier to follow.


With Interniche there are two commands:    uart_putc( int unit, unsigned char ch) & uart_getc( int unit). I'm using two serial ports just fine. I'm trying to port code over to MQX and can't find a similar command.


The only commands I come across is putchar & getchar. That works for one serial port, but I want to use two serial ports. Is there a similar command like in MQX like the ones above from Interniche?