summaryrefslogtreecommitdiff
path: root/ports/atmel-samd/timer_handler.c
diff options
context:
space:
mode:
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;
}