summaryrefslogtreecommitdiff
path: root/ports/atmel-samd/timer_handler.c
diff options
context:
space:
mode:
authorJeff Epler <jeff@adafruit.com>2020-04-14 18:55:40 -0500
committerGitHub <noreply@github.com>2020-04-14 18:55:40 -0500
commit7ed1483b89d24bb4dd44f9c4c8271c438303b9fe (patch)
tree6b138af871bea8cb57eaae23a1d6433bfe1bdece /ports/atmel-samd/timer_handler.c
parentada102dd986bb03186978579cc909da5c66772d6 (diff)
parent3c018bf7fd8142132bdd063a9c898188c825b2a7 (diff)
Merge pull request #2706 from jepler/protomatter
Protomatter: Integrate with CircuitPython
Diffstat (limited to 'ports/atmel-samd/timer_handler.c')
-rw-r--r--ports/atmel-samd/timer_handler.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/ports/atmel-samd/timer_handler.c b/ports/atmel-samd/timer_handler.c
index 5d6de3093..598fad564 100644
--- a/ports/atmel-samd/timer_handler.c
+++ b/ports/atmel-samd/timer_handler.c
@@ -33,6 +33,8 @@
#include "shared-module/_pew/PewPew.h"
#include "common-hal/frequencyio/FrequencyIn.h"
+extern void _PM_IRQ_HANDLER(void);
+
static uint8_t tc_handler[TC_INST_NUM];
void set_timer_handler(bool is_tc, uint8_t index, uint8_t timer_handler) {
@@ -62,6 +64,11 @@ void shared_timer_handler(bool is_tc, uint8_t index) {
frequencyin_interrupt_handler(index);
#endif
break;
+ case TC_HANDLER_PROTOMATTER:
+ #if CIRCUITPY_PROTOMATTER
+ _PM_IRQ_HANDLER();
+ #endif
+ break;
default:
break;
}