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