We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
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()?
would please tell me more about the folloing function: putEscapedChar(checksum)
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); }