From f103e910d7426baa3c5a384b16385b5007fc775f Mon Sep 17 00:00:00 2001 From: sago35 Date: Wed, 3 Jun 2020 21:36:52 +0900 Subject: [PATCH] Add SAMD51 pin change interrupt settings --- src/machine/machine_atsamd51.go | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/machine/machine_atsamd51.go b/src/machine/machine_atsamd51.go index 766fa97c8..d8d62c7ff 100644 --- a/src/machine/machine_atsamd51.go +++ b/src/machine/machine_atsamd51.go @@ -376,6 +376,22 @@ func (p Pin) SetInterrupt(change PinChange, callback func(Pin)) error { extint = 14 case PB29: extint = 15 + case PC07: + extint = 9 + case PD08: + extint = 3 + case PD09: + extint = 4 + case PD10: + extint = 5 + case PD11: + extint = 6 + case PD12: + extint = 7 + case PD20: + extint = 10 + case PD21: + extint = 11 default: // All other pins follow a normal pattern. extint = uint8(p) % 16