diff options
author | Matthijs Kooijman <matthijs@stdin.nl> | 2014-05-16 18:53:17 +0200 |
---|---|---|
committer | Matthijs Kooijman <matthijs@stdin.nl> | 2014-05-16 18:57:04 +0200 |
commit | 3a48c9240d33a32f7afdcb06ac345fa24d4aa46b (patch) | |
tree | 5bd0dd1d4a47bea93304a6c35564799ec85e0992 /cores/arduino/wiring_digital.c | |
parent | 6d4273609b2f8d8c71ff30bda6e075f3d50e335a (diff) |
Support TIMER1C
Some devices, such as the atmega2560 or the atmega256rfr2 have a timer1c
output. It seems this output is not connected to anything on the Arduino
Mega, but this allows using it on third party hardware nonetheless.
Diffstat (limited to 'cores/arduino/wiring_digital.c')
-rw-r--r-- | cores/arduino/wiring_digital.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/cores/arduino/wiring_digital.c b/cores/arduino/wiring_digital.c index be323b1..df94cc1 100644 --- a/cores/arduino/wiring_digital.c +++ b/cores/arduino/wiring_digital.c @@ -84,6 +84,9 @@ static void turnOffPWM(uint8_t timer) #if defined(TCCR1A) && defined(COM1B1) case TIMER1B: cbi(TCCR1A, COM1B1); break; #endif + #if defined(TCCR1A) && defined(COM1C1) + case TIMER1C: cbi(TCCR1A, COM1C1); break; + #endif #if defined(TCCR2) && defined(COM21) case TIMER2: cbi(TCCR2, COM21); break; |