Send more interesting text
[fw/altos] / target / serial / serial.c
index d2be47fdeb1ed7cd9f53dce9b3e8d9ae258691fa..42705d7154069b04f2c693d9e1eed22a131ba1bd 100644 (file)
@@ -188,11 +188,12 @@ usart_init(void)
        /*
         * Reasonable serial parameters
         */
-       U1UCR = (UxUCR_FLOW_DISABLE |
-                UxUCR_D9_EVEN_PARITY |
+       U1UCR = (UxUCR_FLUSH |
+                UxUCR_FLOW_DISABLE |
+                UxUCR_D9_ODD_PARITY |
                 UxUCR_BIT9_8_BITS |
                 UxUCR_PARITY_DISABLE |
-                UxUCR_SPB_1_STOP_BIT |
+                UxUCR_SPB_2_STOP_BITS |
                 UxUCR_STOP_HIGH |
                 UxUCR_START_LOW);
 }
@@ -235,7 +236,8 @@ main ()
        spi_init();
 
        for (;;) {
-               usart_out_byte('A');
+               for (i = 0; i < sizeof(string) - 1; i++)
+                       usart_out_byte(string[i]);
                delay(5);
                P1 ^= 2;
        }