WriteSerialPortOne and WriteSerialPortTwo should write a single character to the first and second serial ports respectively. To write a null-terminated string to the first serial port, you could use a function such as
Code:
void puts(char *str)
{
while(*str)
{
WriteSerialPortOne(*str++);
}
}
Of course, make sure you've opened the serial port before trying to read or write with it, and that you pass one of the baudrate constants to the open function; it sounds like you would want something like OpenSerialPortTwo(BAUD_9600);
It seems like you probably could have figured this yourself, though, so let me know if I've misinterpreted your question.
--Ryan
__________________
FRC 2046, 2007-2008, Student member
FRC 1708, 2009-2012, College mentor; 2013-2014, Mentor
FRC 766, 2015-, Mentor