Re: Where is the error (stdout)

2020-02-07 Thread David Kelly
On Feb 7, 2020, at 5:58 PM, Col wrote: >> void uart_putchar(char c, FILE *stream) >> { >> if (c == '\n') >> uart_putchar('\r', stream); >> loop_until_bit_is_set(UCSRA, UDRE); >> UDR = c; >> return ; >> } > > I suspect it's because your returning a void instead of an int, In Unix

Re: Where is the error (stdout)

2020-02-07 Thread Col
void uart_putchar(char c, FILE *stream) {  if (c == '\n') uart_putchar('\r', stream);  loop_until_bit_is_set(UCSRA, UDRE);  UDR = c;  return ; } I suspect it's because your returning a void instead of an int, Here is some code that I used to test stdio on avrlibc ( atmega128 ) which