Skip to content

Commit f103e91

Browse files
sago35deadprogram
authored andcommitted
Add SAMD51 pin change interrupt settings
1 parent 40afeea commit f103e91

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

src/machine/machine_atsamd51.go

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -376,6 +376,22 @@ func (p Pin) SetInterrupt(change PinChange, callback func(Pin)) error {
376376
extint = 14
377377
case PB29:
378378
extint = 15
379+
case PC07:
380+
extint = 9
381+
case PD08:
382+
extint = 3
383+
case PD09:
384+
extint = 4
385+
case PD10:
386+
extint = 5
387+
case PD11:
388+
extint = 6
389+
case PD12:
390+
extint = 7
391+
case PD20:
392+
extint = 10
393+
case PD21:
394+
extint = 11
379395
default:
380396
// All other pins follow a normal pattern.
381397
extint = uint8(p) % 16

0 commit comments

Comments
 (0)