diff options
| author | sommersoft <sommersoft@gmail.com> | 2019-02-21 20:46:42 -0600 |
|---|---|---|
| committer | sommersoft <sommersoft@gmail.com> | 2019-02-21 20:46:42 -0600 |
| commit | a3f387274f029abae46c87ca9a903d67bdc90ea1 (patch) | |
| tree | 151eaa169361ed2e161a24ad191f9ec7a4d0a647 | |
| parent | 7a7f6638d2f399ac75c28cb53b441836bbe0acd1 (diff) | |
fix build issues
| -rw-r--r-- | ports/atmel-samd/Makefile | 1 | ||||
| -rw-r--r-- | ports/atmel-samd/timer_handler.c | 3 | ||||
| -rw-r--r-- | ports/atmel-samd/timer_handler.h | 1 |
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); |
