Code: Select all
#include <uart.h>
#include <platform.h>
port tx = XS1_PORT_1A;
port rx = XS1_PORT_1B;
int main(void) {
chan c;
par{
on stdcore[0] : uart_tx(tx,c);
on stdcore[1] : uart_rx(rx,c);
}
}
What I am trying to do is read a NMEA GPS and send it to a wireless transmitter. The GPS is 4800 baud, and the transmitter is 9600. How can i define different serial ports?