Skip to content

Commit c9eb02d

Browse files
committed
shore-up inclusion
1 parent 2cd6a79 commit c9eb02d

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

ports/atmel-samd/timer_handler.c

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,9 @@
3131

3232
#include "common-hal/pulseio/PulseOut.h"
3333
#include "shared-module/_pew/PewPew.h"
34+
#if CIRCUITPY_FREQUENCYIN
3435
#include "common-hal/frequencyio/FrequencyIn.h"
36+
#endif
3537

3638
static uint8_t tc_handler[TC_INST_NUM];
3739

@@ -51,12 +53,14 @@ void shared_timer_handler(bool is_tc, uint8_t index) {
5153
pulseout_interrupt_handler(index);
5254
break;
5355
case TC_HANDLER_PEW:
54-
#if CIRCUITPY_PEW
56+
#if CIRCUITPY_PEW
5557
pewpew_interrupt_handler(index);
56-
#endif
58+
#endif
5759
break;
5860
case TC_HANDLER_FREQUENCYIN:
61+
#if CIRCUITPY_FREQUENCYIN
5962
frequencyin_interrupt_handler(index);
63+
#endif
6064
break;
6165
default:
6266
break;

0 commit comments

Comments
 (0)