diff options
| author | sommersoft <sommersoft@gmail.com> | 2019-03-01 21:47:23 -0600 |
|---|---|---|
| committer | sommersoft <sommersoft@gmail.com> | 2019-03-01 21:47:23 -0600 |
| commit | 438eadd63acb25a43e008dec9335ac4ebb779f96 (patch) | |
| tree | e9c1d233fe499c60a1e4730420021ae75f90ffdc | |
| parent | a44bfc2730c246738dd8d636d18ffb6591673864 (diff) | |
re-add frequencyin to 'timer_handler' after upstream merge
| -rw-r--r-- | ports/atmel-samd/timer_handler.c | 4 | ||||
| -rw-r--r-- | ports/atmel-samd/timer_handler.h | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/ports/atmel-samd/timer_handler.c b/ports/atmel-samd/timer_handler.c index 059d4330e..6fb25db4f 100644 --- a/ports/atmel-samd/timer_handler.c +++ b/ports/atmel-samd/timer_handler.c @@ -31,6 +31,7 @@ #include "common-hal/pulseio/PulseOut.h" #include "shared-module/_pew/PewPew.h" +#include "common-hal/frequencyio/FrequencyIn.h" static uint8_t tc_handler[TC_INST_NUM]; @@ -54,6 +55,9 @@ void shared_timer_handler(bool is_tc, uint8_t index) { pewpew_interrupt_handler(index); #endif break; + case TC_HANDLER_FREQUENCYIN: + frequencyin_interrupt_handler(index); + break; default: break; } diff --git a/ports/atmel-samd/timer_handler.h b/ports/atmel-samd/timer_handler.h index e249fca36..4a7adb58c 100644 --- a/ports/atmel-samd/timer_handler.h +++ b/ports/atmel-samd/timer_handler.h @@ -29,6 +29,7 @@ #define TC_HANDLER_NO_INTERRUPT 0x0 #define TC_HANDLER_PULSEOUT 0x1 #define TC_HANDLER_PEW 0x2 +#define TC_HANDLER_FREQUENCYIN 0x3 void set_timer_handler(bool is_tc, uint8_t index, uint8_t timer_handler); void shared_timer_handler(bool is_tc, uint8_t index); |
