/*\r
LUFA Library\r
- Copyright (C) Dean Camera, 2009.\r
+ Copyright (C) Dean Camera, 2010.\r
\r
dean [at] fourwalledcubicle [dot] com\r
www.fourwalledcubicle.com\r
*/\r
\r
/*\r
- Copyright 2009 David Prentice (david.prentice [at] farming [dot] uk)\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
+ Copyright 2010 David Prentice (david.prentice [at] farming [dot] uk)\r
+ Copyright 2010 Peter Danneger\r
+ Copyright 2010 Dean Camera (dean [at] fourwalledcubicle [dot] com)\r
+\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
{\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
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