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
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