Content originally posted in LPCWare by Ex-Zero on Sat Mar 26 06:11:27 MST 2011 Are we still talking about LPC17xx? 1. #include <stdio.h> 2. Setup UARTx 3. Include this function:
//set for printf
int __write (int iFileHandle, char *pcBuffer, unsigned char iLength)
{
unsigned int i;
for (i = 0; i<iLength; i++)
{
UART0_Sendchar(pcBuffer); //print character
}
return iLength;
}