Minor documentation updates.
[pub/USBasp.git] / Projects / XPLAINBridge / Lib / SoftUART.c
index 390e6d5..16cfc98 100644 (file)
   Copyright 2009  Peter Danneger\r
   Copyright 2009  Dean Camera (dean [at] fourwalledcubicle [dot] com)\r
 \r
   Copyright 2009  Peter Danneger\r
   Copyright 2009  Dean Camera (dean [at] fourwalledcubicle [dot] com)\r
 \r
-  Permission to use, copy, modify, and distribute this software\r
-  and its documentation for any purpose and without fee is hereby\r
-  granted, provided that the above copyright notice appear in all\r
-  copies and that both that the copyright notice and this\r
-  permission notice and warranty disclaimer appear in supporting\r
-  documentation, and that the name of the author not be used in\r
-  advertising or publicity pertaining to distribution of the\r
+  Permission to use, copy, modify, distribute, and sell this \r
+  software and its documentation for any purpose is hereby granted\r
+  without fee, provided that the above copyright notice appear in \r
+  all copies and that both that the copyright notice and this\r
+  permission notice and warranty disclaimer appear in supporting \r
+  documentation, and that the name of the author not be used in \r
+  advertising or publicity pertaining to distribution of the \r
   software without specific, written prior permission.\r
 \r
   The author disclaim all warranties with regard to this\r
   software without specific, written prior permission.\r
 \r
   The author disclaim all warranties with regard to this\r
@@ -68,7 +68,7 @@ void SoftUART_Init(void)
 {\r
        OCR2B  = TCNT2 + 1;                                             // force first compare\r
        TCCR2A = (1 << COM2B1) | (1 << COM2B0); // T1 mode 0\r
 {\r
        OCR2B  = TCNT2 + 1;                                             // force first compare\r
        TCCR2A = (1 << COM2B1) | (1 << COM2B0); // T1 mode 0\r
-       TCCR2B = (1 << FOC2B) | (1 << CS21);    // CLK/8, T1 mode 0\r
+       TCCR2B = (1 << FOC2B)  | (1 << CS21);   // CLK/8, T1 mode 0\r
        TIMSK2 = (1 << OCIE2B);                                 // enable tx and wait for start\r
        EICRA  = (1 << ISC01);                                  // -ve edge\r
        EIMSK  = (1 << INT0);                                   // enable INT0 interrupt\r
        TIMSK2 = (1 << OCIE2B);                                 // enable tx and wait for start\r
        EICRA  = (1 << ISC01);                                  // -ve edge\r
        EIMSK  = (1 << INT0);                                   // enable INT0 interrupt\r
@@ -76,7 +76,7 @@ void SoftUART_Init(void)
        stx_count = 0;                                                  // nothing to send\r
        srx_done = 0;                                                   // nothing received\r
        STXPORT |= 1 << STX;                                    // TX output\r
        stx_count = 0;                                                  // nothing to send\r
        srx_done = 0;                                                   // nothing received\r
        STXPORT |= 1 << STX;                                    // TX output\r
-       STXDDR |= 1 << STX;                                             // TX output\r
+       STXDDR  |= 1 << STX;                                    // TX output\r
        SRXPORT |= (1 << SRX);                                  // pullup on INT0\r
 }\r
 \r
        SRXPORT |= (1 << SRX);                                  // pullup on INT0\r
 }\r
 \r