Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
/Users/warren/Documents/Arduino/libraries/SoftModem-webjack/SoftModem.cpp: In member function 'void SoftModem::begin()':
/Users/warren/Documents/Arduino/libraries/SoftModem-webjack/SoftModem.cpp:99:14: error: 'TCNT2' was not declared in this scope
_lastTCNT = TCNT2;
^
/Users/warren/Documents/Arduino/libraries/SoftModem-webjack/SoftModem.cpp:102:2: error: 'TCCR2A' was not declared in this scope
TCCR2A = 0;
^
/Users/warren/Documents/Arduino/libraries/SoftModem-webjack/SoftModem.cpp:103:2: error: 'TCCR2B' was not declared in this scope
TCCR2B = TIMER_CLOCK_SELECT; // Timer 2 in normal mode, prescaler depending on TIMER_CLOCK_SELECT
^
/Users/warren/Documents/Arduino/libraries/SoftModem-webjack/SoftModem.cpp: In member function 'void SoftModem::demodulate()':
/Users/warren/Documents/Arduino/libraries/SoftModem-webjack/SoftModem.cpp:118:14: error: 'TCNT2' was not declared in this scope
uint8_t t = TCNT2; // get time in Timer 2
^
/Users/warren/Documents/Arduino/libraries/SoftModem-webjack/SoftModem.cpp:121:5: error: 'TIFR2' was not declared in this scope
if(TIFR2 & _BV(TOV2)){ // Timer 2 overflow
^
In file included from /Applications/Arduino.app/Contents/Java/hardware/tools/avr/avr/include/avr/io.h:99:0,
from /Applications/Arduino.app/Contents/Java/hardware/tools/avr/avr/include/avr/pgmspace.h:88,
from /Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/Arduino.h:28,
from /Users/warren/Documents/Arduino/libraries/SoftModem-webjack/SoftModem.h:4,
from /Users/warren/Documents/Arduino/libraries/SoftModem-webjack/SoftModem.cpp:1:
/Users/warren/Documents/Arduino/libraries/SoftModem-webjack/SoftModem.cpp:121:17: error: 'TOV2' was not declared in this scope
if(TIFR2 & _BV(TOV2)){ // Timer 2 overflow
^
/Users/warren/Documents/Arduino/libraries/SoftModem-webjack/SoftModem.cpp:146:4: error: 'OCR2A' was not declared in this scope
OCR2A = t + (uint8_t)(TCNT_BIT_PERIOD) - _lowCount; // 1 bit period after detected, set next timer2 interrupt at half TCNT_BIT_PERIOD later
^
/Users/warren/Documents/Arduino/libraries/SoftModem-webjack/SoftModem.cpp:147:4: error: 'TIFR2' was not declared in this scope
TIFR2 |= _BV(OCF2A);
^
In file included from /Applications/Arduino.app/Contents/Java/hardware/tools/avr/avr/include/avr/io.h:99:0,
from /Applications/Arduino.app/Contents/Java/hardware/tools/avr/avr/include/avr/pgmspace.h:88,
from /Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/Arduino.h:28,
from /Users/warren/Documents/Arduino/libraries/SoftModem-webjack/SoftModem.h:4,
from /Users/warren/Documents/Arduino/libraries/SoftModem-webjack/SoftModem.cpp:1:
/Users/warren/Documents/Arduino/libraries/SoftModem-webjack/SoftModem.cpp:147:21: error: 'OCF2A' was not declared in this scope
TIFR2 |= _BV(OCF2A);
^
/Users/warren/Documents/Arduino/libraries/SoftModem-webjack/SoftModem.cpp: In function 'void TIMER2_COMPA_vect()':
/Users/warren/Documents/Arduino/libraries/SoftModem-webjack/SoftModem.cpp:211:2: error: 'OCR2A' was not declared in this scope
OCR2A += (uint8_t)TCNT_BIT_PERIOD;
^
/Users/warren/Documents/Arduino/libraries/SoftModem-webjack/SoftModem.cpp: In member function 'void SoftModem::modulate(uint8_t)':
/Users/warren/Documents/Arduino/libraries/SoftModem-webjack/SoftModem.cpp:259:4: error: 'OCR2B' was not declared in this scope
OCR2B += tcnt;
^
/Users/warren/Documents/Arduino/libraries/SoftModem-webjack/SoftModem.cpp:260:4: error: 'TIFR2' was not declared in this scope
TIFR2 |= _BV(OCF2B); // clears the Output Compare Flag 2B
^
In file included from /Applications/Arduino.app/Contents/Java/hardware/tools/avr/avr/include/avr/io.h:99:0,
from /Applications/Arduino.app/Contents/Java/hardware/tools/avr/avr/include/avr/pgmspace.h:88,
from /Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/Arduino.h:28,
from /Users/warren/Documents/Arduino/libraries/SoftModem-webjack/SoftModem.h:4,
from /Users/warren/Documents/Arduino/libraries/SoftModem-webjack/SoftModem.cpp:1:
/Users/warren/Documents/Arduino/libraries/SoftModem-webjack/SoftModem.cpp:260:17: error: 'OCF2B' was not declared in this scope
TIFR2 |= _BV(OCF2B); // clears the Output Compare Flag 2B
^
/Users/warren/Documents/Arduino/libraries/SoftModem-webjack/SoftModem.cpp:265:4: error: 'OCR2B' was not declared in this scope
OCR2B += tcnt2;
^
/Users/warren/Documents/Arduino/libraries/SoftModem-webjack/SoftModem.cpp:266:4: error: 'TIFR2' was not declared in this scope
TIFR2 |= _BV(OCF2B);
^
In file included from /Applications/Arduino.app/Contents/Java/hardware/tools/avr/avr/include/avr/io.h:99:0,
from /Applications/Arduino.app/Contents/Java/hardware/tools/avr/avr/include/avr/pgmspace.h:88,
from /Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/Arduino.h:28,
from /Users/warren/Documents/Arduino/libraries/SoftModem-webjack/SoftModem.h:4,
from /Users/warren/Documents/Arduino/libraries/SoftModem-webjack/SoftModem.cpp:1:
/Users/warren/Documents/Arduino/libraries/SoftModem-webjack/SoftModem.cpp:266:17: error: 'OCF2B' was not declared in this scope
TIFR2 |= _BV(OCF2B);
^
exit status 1
Error compiling.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.