I'm a newbee in c and is using Joerg Wunsch's stdio library. (In AtmelStudio 6.1 with gcc)
I know how to send a readable string or char to the serial port. And sending escape codes with a "\" has also slipped into my mind.
But how to send a char = 0x01 without formating ?
I have hooked up a terminal program in hex mode and I want to receive "1" (not the ascii value=31)
I can't make out which formatting switch to use!
I tried this in my code and it worked. But I'm not sure it is a good idea ?
FILE _io = FDEV_SETUP_STREAM(uart_putchar, uart_getchar, _FDEV_SETUP_RW);