Content originally posted in LPCWare by mhatter on Thu Aug 02 16:37:51 MST 2012
The comment on the function you're calling says this:
/******************************************************************************
** Function name:swu_rx_chr
**
** Descriptions:
**
** This routine reads a single character from the software UART rx FIFO.
** If no new data is available, it returns the last one read;
** The framing error indicator is updated, too.
**
** parameters:None
** Returned value:char
**
******************************************************************************/
Take a better look at the test_lpc_swu.c to see how it works.