altos: Replace C code attiny async output with inline asm
[fw/altos] / src / avr / ao_avr_stdio.c
index ba562dbf87c8a6e3fd1a1f59dd95dc11d63be3ee..f9c0f88c7e33474f666e4bd04984d3368371bce2 100644 (file)
 int
 stdio_put(char c, FILE *stream)
 {
-       if (ao_cur_task && ao_num_stdios)
-               putchar(c);
-       else
-       {
-               if (c == '\n')
-                       stdio_put('\r', stream);
-               loop_until_bit_is_set(UCSR1A, UDRE1);
-               UDR1 = c;
-       }
-
+       putchar(c);
        return 0;
 }
 
@@ -48,5 +39,4 @@ ao_avr_stdio_init(void)
 {
        stdout = &mystdout;
        stdin = &mystdin;
-       printf("%d stdios registered\n", ao_num_stdios);
 }