diff options
author | Dean Camera <dean@fourwalledcubicle.com> | 2009-12-03 00:53:45 +0000 |
---|---|---|
committer | Dean Camera <dean@fourwalledcubicle.com> | 2009-12-03 00:53:45 +0000 |
commit | f69f03cb0d02937dee018264f0ac4e9be76fc1f4 (patch) | |
tree | 5b3d139377206a367ce3aae8a0766265981930b5 /Projects/XPLAINBridge/Lib | |
parent | f92b56191de02ce95c35349274ccb4e522841348 (diff) | |
download | lufa-f69f03cb0d02937dee018264f0ac4e9be76fc1f4.tar.gz lufa-f69f03cb0d02937dee018264f0ac4e9be76fc1f4.tar.bz2 lufa-f69f03cb0d02937dee018264f0ac4e9be76fc1f4.zip |
Started implementing the low level PDI protocol in the AVRISP project, for XMEGA device programming.
Diffstat (limited to 'Projects/XPLAINBridge/Lib')
-rw-r--r-- | Projects/XPLAINBridge/Lib/SoftUART.c | 4 |
1 files changed, 2 insertions, 2 deletions
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
}
|