8000 re-add frequencyin to 'timer_handler' after upstream merge · zencuke/circuitpython@438eadd · GitHub
[go: up one dir, main page]

Skip to content

Commit 438eadd

Browse files
committed
re-add frequencyin to 'timer_handler' after upstream merge
1 parent a44bfc2 commit 438eadd

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

ports/atmel-samd/timer_handler.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131

3232
#include "common-hal/pulseio/PulseOut.h"
3333
#include "shared-module/_pew/PewPew.h"
34+
#include "common-hal/frequencyio/FrequencyIn.h"
3435

3536
static uint8_t tc_handler[TC_INST_NUM];
3637

@@ -54,6 +55,9 @@ void shared_timer_handler(bool is_tc, uint8_t index) {
5455
pewpew_interrupt_handler(index);
5556
#endif
5657
break;
58+
case TC_HANDLER_FREQUENCYIN:
59+
frequencyin_interrupt_handler(index);
60+
break;
5761
default:
5862
break;
5963
}

ports/atmel-samd/timer_handler.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
#define TC_HANDLER_NO_INTERRUPT 0x0
3030
#define TC_HANDLER_PULSEOUT 0x1
3131
#define TC_HANDLER_PEW 0x2
32+
#define TC_HANDLER_FREQUENCYIN 0x3
3233

3334
void set_timer_handler(bool is_tc, uint8_t index, uint8_t timer_handler);
3435
void shared_timer_handler(bool is_tc, uint8_t index);

0 commit comments

Comments
 (0)
0