summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsommersoft <sommersoft@gmail.com>2019-03-02 10:05:32 -0600
committersommersoft <sommersoft@gmail.com>2019-03-02 10:05:32 -0600
commitc9eb02d9d29aa7a3ae9091b08a11377e4d1ae4d6 (patch)
tree65eaaf50fe61f799860220eb52ac2abee3f671b8
parent2cd6a7901683e32832f42a531485783aa599169a (diff)
shore-up inclusion
-rw-r--r--ports/atmel-samd/timer_handler.c8
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;