From c9eb02d9d29aa7a3ae9091b08a11377e4d1ae4d6 Mon Sep 17 00:00:00 2001 From: sommersoft Date: Sat, 2 Mar 2019 10:05:32 -0600 Subject: shore-up inclusion --- ports/atmel-samd/timer_handler.c | 8 ++++++-- 1 file 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; -- cgit v1.2.3