Ich glaub', so geht's.
Code:static int uart_putchar(char c, FILE *stream); static FILE mystdout = FDEV_SETUP_STREAM(uart_putchar, NULL, _FDEV_SETUP_WRITE); static int uart_putchar(char c, FILE *stream) { //while (!(UCSRA & (1<<UDRE))); //warten bis Senden moeglich if (c == '\n') { uart_putchar('\r',&mystdout); } loop_until_bit_is_set(UCSRA, UDRE); UDR = c; return 0; } ..................... printf ("Trilulliöö\n");
Lesezeichen