How many bytes will printf() take up in a non debug-monitor environment? Also, is it easy to set up printf() to map to a second UART? I will need control of the UART ISR so that I can handle receives appropriately. How will this confict with printf()?
I'd write my own putchar() like this:
char putchar(char outChar) { TI = 0; SBUF = outChar; while (!TI); return outChar; }
void putFiltByte(U8 outByte) { if (STX == outByte || DLE == outByte) { // Escape this data char. putchar(DLE); // Ensure this data char. is never an STX or DLE. outByte += ' '; } putchar(outByte); }