X-Git-Url: http://git.linex4red.de/pub/USBasp.git/blobdiff_plain/f92b56191de02ce95c35349274ccb4e522841348..f69f03cb0d02937dee018264f0ac4e9be76fc1f4:/Projects/XPLAINBridge/Lib/SoftUART.c diff --git a/Projects/XPLAINBridge/Lib/SoftUART.c b/Projects/XPLAINBridge/Lib/SoftUART.c index 390e6d59b..ca3eaf7ab 100644 --- a/Projects/XPLAINBridge/Lib/SoftUART.c +++ b/Projects/XPLAINBridge/Lib/SoftUART.c @@ -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 }