X-Git-Url: http://git.linex4red.de/pub/USBasp.git/blobdiff_plain/f92b56191de02ce95c35349274ccb4e522841348..03ee87b35abdb8b92e8b55ec040fa943f9a6786c:/Projects/XPLAINBridge/Lib/SoftUART.c diff --git a/Projects/XPLAINBridge/Lib/SoftUART.c b/Projects/XPLAINBridge/Lib/SoftUART.c index 390e6d59b..bc0265378 100644 --- a/Projects/XPLAINBridge/Lib/SoftUART.c +++ b/Projects/XPLAINBridge/Lib/SoftUART.c @@ -1,23 +1,23 @@ /* LUFA Library - Copyright (C) Dean Camera, 2009. + Copyright (C) Dean Camera, 2010. dean [at] fourwalledcubicle [dot] com www.fourwalledcubicle.com */ /* - Copyright 2009 David Prentice (david.prentice [at] farming [dot] uk) - Copyright 2009 Peter Danneger - Copyright 2009 Dean Camera (dean [at] fourwalledcubicle [dot] com) - - Permission to use, copy, modify, and distribute this software - and its documentation for any purpose and without fee is hereby - granted, provided that the above copyright notice appear in all - copies and that both that the copyright notice and this - permission notice and warranty disclaimer appear in supporting - documentation, and that the name of the author not be used in - advertising or publicity pertaining to distribution of the + Copyright 2010 David Prentice (david.prentice [at] farming [dot] uk) + Copyright 2010 Peter Danneger + Copyright 2010 Dean Camera (dean [at] fourwalledcubicle [dot] com) + + Permission to use, copy, modify, distribute, and sell this + software and its documentation for any purpose is hereby granted + without fee, provided that the above copyright notice appear in + all copies and that both that the copyright notice and this + permission notice and warranty disclaimer appear in supporting + documentation, and that the name of the author not be used in + advertising or publicity pertaining to distribution of the software without specific, written prior permission. The author disclaim all warranties with regard to this @@ -68,7 +68,7 @@ void SoftUART_Init(void) { OCR2B = TCNT2 + 1; // force first compare TCCR2A = (1 << COM2B1) | (1 << COM2B0); // T1 mode 0 - TCCR2B = (1 << FOC2B) | (1 << CS21); // CLK/8, T1 mode 0 + TCCR2B = (1 << FOC2B) | (1 << CS21); // CLK/8, T1 mode 0 TIMSK2 = (1 << OCIE2B); // enable tx and wait for start EICRA = (1 << ISC01); // -ve edge EIMSK = (1 << INT0); // enable INT0 interrupt @@ -76,7 +76,7 @@ void SoftUART_Init(void) stx_count = 0; // nothing to send srx_done = 0; // nothing received STXPORT |= 1 << STX; // TX output - STXDDR |= 1 << STX; // TX output + STXDDR |= 1 << STX; // TX output SRXPORT |= (1 << SRX); // pullup on INT0 }