Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Timer2 #1

Open
isadoza03 opened this issue Apr 22, 2016 · 3 comments
Open

Timer2 #1

isadoza03 opened this issue Apr 22, 2016 · 3 comments

Comments

@isadoza03
Copy link

How did you get Timer2 to work with Teensy 3.2? It always gives me these errors:

Interrupt:28: error: expected constructor, destructor, or type conversion before '(' token
ISR(TIMER2_COMPA_vect){
^
In function 'void interruptSetup()':
Interrupt:18: error: 'TCCR2A' was not declared in this scope
TCCR2A = 0x02;
^
Interrupt:19: error: 'TCCR2B' was not declared in this scope
TCCR2B = 0x06;
^
Interrupt:20: error: 'OCR2A' was not declared in this scope
OCR2A = 0X7C;
^
Interrupt:21: error: 'TIMSK2' was not declared in this scope
TIMSK2 = 0x02;
^

At global scope:
Interrupt:28: error: expected constructor, destructor, or type conversion before '(' token
ISR(TIMER2_COMPA_vect){
^
exit status 1
expected constructor, destructor, or type conversion before '(' token

@krlash
Copy link

krlash commented Feb 7, 2017

I don't think he did

@BubbaGumpLife
Copy link

Did you ever get this to work? I get exactly the same errors

@h20180179
Copy link

same problem here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants