I’m trying to modify the timers on my Due AT91SAM3X8E processor like in this article: http://arduino.cc/en/Tutorial/SecretsOfArduinoPWM
Basically, I need to know the equivalent for the ARM processor of:
TCCR2A = _BV(COM2A1) | _BV(COM2B1) | _BV(WGM21) | _BV(WGM20);
TCCR2B = _BV(CS22);
OCR2A = 180;
OCR2B = 50;
What the corresponding timers and registers are for the Due ARM processor?
And what would be the correct library to include to access these registers so I can modify their bits?