fix build issues

This commit is contained in:
sommersoft 2019-02-21 20:46:42 -06:00
parent 7a7f6638d2
commit a3f387274f
3 changed files with 1 additions and 4 deletions

View File

@ -245,6 +245,7 @@ SRC_C = \
reset.c \
supervisor/shared/memory.c \
tick.c \
timer_handler.c \
ifeq ($(CIRCUITPY_NETWORK),1)

View File

@ -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);
}
}
}

View File

@ -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);