MCPcopy Create free account
hub / github.com/Arduino-IRremote/Arduino-IRremote / TIMER2_IRQHandler

Function TIMER2_IRQHandler

src/private/IRTimer.hpp:2128–2135  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2126 */
2127extern "C" {
2128void TIMER2_IRQHandler(void) {
2129 // Interrupt Service Routine - Fires every 50uS
2130 if ((NRF_TIMER2->EVENTS_COMPARE[0] != 0) && ((NRF_TIMER2->INTENSET & TIMER_INTENSET_COMPARE0_Msk) != 0)) {
2131 NRF_TIMER2->EVENTS_COMPARE[0] = 0; //Clear compare register 0 event
2132 IRReceiveTimerInterruptHandler(); // call the IR-receive function
2133 NRF_TIMER2->CC[0] += 50;
2134 }
2135}
2136}
2137#endif
2138

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected