I'm working in the eclipse IDE. I have an old project in which I manipulate the timers directly on a Fio board. It used to work fine, but now that I am using the newest version of the Arduino library, I get the following errors:
error: ‘TIMSK2’ was not declared in this scope
error: ‘TCCR2A’ was not declared in this scope
error: ‘TCCR2B’ was not declared in this scope
error: ‘WGM22’ was not declared in this scope
error: ‘OCIE2A’ was not declared in this scope
Where are these things defined? I noticed that I can use them directly in the Arduino IDE but for some reason my eclipse project can't find them anymore. Thanks!
OK Thanks. This led me to find the problem. You were right.
I commented io.h so that only the correct chip was defined, then it worked. Turns out the correct chip wasn't being defined properly in eclipse. On to solving new errors...