summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ports/atmel-samd/Makefile1
-rw-r--r--ports/atmel-samd/timer_handler.c3
-rw-r--r--ports/atmel-samd/timer_handler.h1
3 files changed, 1 insertions, 4 deletions
diff --git a/ports/atmel-samd/Makefile b/ports/atmel-samd/Makefile
index b608f3a20..f7bee226f 100644
--- a/ports/atmel-samd/Makefile
+++ b/ports/atmel-samd/Makefile
@@ -245,6 +245,7 @@ SRC_C = \
reset.c \
supervisor/shared/memory.c \
tick.c \
+ timer_handler.c \
ifeq ($(CIRCUITPY_NETWORK),1)
diff --git a/ports/atmel-samd/timer_handler.c b/ports/atmel-samd/timer_handler.c
index 566dd8cbd..26f984d96 100644
--- a/ports/atmel-samd/timer_handler.c
+++ b/ports/atmel-samd/timer_handler.c
@@ -30,7 +30,6 @@
#include "timer_handler.h"
#include "common-hal/pulseio/PulseOut.h"
-#include "common-hal/pulseio/FrequencyIn.h"
static uint8_t tc_handler[TC_INST_NUM];
@@ -47,8 +46,6 @@ void shared_timer_handler(bool is_tc, uint8_t index) {
uint8_t handler = tc_handler[index];
if (handler == TC_HANDLER_PULSEOUT) {
pulseout_interrupt_handler(index);
- } else if (handler == TC_HANDLER_FREQUENCYIN) {
- frequencyin_interrupt_handler(index);
}
}
}
diff --git a/ports/atmel-samd/timer_handler.h b/ports/atmel-samd/timer_handler.h
index a495e21f2..f7a6e6e0e 100644
--- a/ports/atmel-samd/timer_handler.h
+++ b/ports/atmel-samd/timer_handler.h
@@ -28,7 +28,6 @@
#define TC_HANDLER_NO_INTERRUPT 0x0
#define TC_HANDLER_PULSEOUT 0x1
-#define TC_HANDLER_FREQUENCYIN 0x2
void set_timer_handler(bool is_tc, uint8_t index, uint8_t timer_handler);
void shared_timer_handler(bool is_tc, uint8_t index);