MCPcopy Create free account
hub / github.com/PaulStoffregen/TimerOne / disablePwm

Method disablePwm

TimerOne.h:265–273  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

263 pwm(pin, duty);
264 }
265 void disablePwm(char pin) __attribute__((always_inline)) {
266 if (pin == TIMER1_A_PIN) TCCR1A &= ~_BV(COM1A1);
267 #ifdef TIMER1_B_PIN
268 else if (pin == TIMER1_B_PIN) TCCR1A &= ~_BV(COM1B1);
269 #endif
270 #ifdef TIMER1_C_PIN
271 else if (pin == TIMER1_C_PIN) TCCR1A &= ~_BV(COM1C1);
272 #endif
273 }
274
275 //****************************
276 // Interrupt Function

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected