diff options
| -rw-r--r-- | ports/atmel-samd/timer_handler.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/ports/atmel-samd/timer_handler.c b/ports/atmel-samd/timer_handler.c index 6fb25db4f..498294acf 100644 --- a/ports/atmel-samd/timer_handler.c +++ b/ports/atmel-samd/timer_handler.c @@ -31,7 +31,9 @@ #include "common-hal/pulseio/PulseOut.h" #include "shared-module/_pew/PewPew.h" +#if CIRCUITPY_FREQUENCYIN #include "common-hal/frequencyio/FrequencyIn.h" +#endif static uint8_t tc_handler[TC_INST_NUM]; @@ -51,12 +53,14 @@ void shared_timer_handler(bool is_tc, uint8_t index) { pulseout_interrupt_handler(index); break; case TC_HANDLER_PEW: -#if CIRCUITPY_PEW + #if CIRCUITPY_PEW pewpew_interrupt_handler(index); -#endif + #endif break; case TC_HANDLER_FREQUENCYIN: + #if CIRCUITPY_FREQUENCYIN frequencyin_interrupt_handler(index); + #endif break; default: break; |
