On Feb 7, 2020, at 5:58 PM, Col <[email protected]> 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 convention its
int putc( int, FILE* )
int putchar( int )
Where upon success one returns the character put or -1 or EOF for failure. If
replacing standard function one should return the expected value else something
will break.
--
David Kelly N4HHE, [email protected]
============================================================
Whom computers would destroy, they must first drive mad.