MCPcopy Create free account
hub / github.com/FastLED/FastLED / get_timer_irq

Function get_timer_irq

src/platforms/arm/samd/isr_samd.hpp:134–162  ·  view source on GitHub ↗

Get timer IRQ from index

Source from the content-addressed store, hash-verified

132
133// Get timer IRQ from index
134static IRQn_Type get_timer_irq(u8 index) FL_NOEXCEPT {
135 switch (index) {
136#ifdef TC0_IRQn
137 case 0: return TC0_IRQn;
138#endif
139#ifdef TC1_IRQn
140 case 1: return TC1_IRQn;
141#endif
142#ifdef TC2_IRQn
143 case 2: return TC2_IRQn;
144#endif
145#ifdef TC3_IRQn
146 case 3: return TC3_IRQn;
147#endif
148#ifdef TC4_IRQn
149 case 4: return TC4_IRQn;
150#endif
151#ifdef TC5_IRQn
152 case 5: return TC5_IRQn;
153#endif
154#ifdef TC6_IRQn
155 case 6: return TC6_IRQn;
156#endif
157#ifdef TC7_IRQn
158 case 7: return TC7_IRQn;
159#endif
160 default: return static_cast<IRQn_Type>(0);
161 }
162}
163
164// Allocate a free timer
165static bool allocate_timer(u8& timer_idx) FL_NOEXCEPT {

Callers 1

attach_timer_handlerFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected