cpu/sam0_common/gpio: don't hard-code number of ports
cpu/sam0_common/gpio: don't hard-code number of ports

_exti() always assumes only 2 ports, so it will always fail when using
e.g. port C or port D on same54.

Instead, determine the number of ports from the dimensions of the exti_config
array.

basilfx/RIOT,authmillenon/RIOT,ant9000/RIOT,toonst/RIOT,basilfx/RIOT,miri64/RIOT,miri64/RIOT,OTAkeys/RIOT,yogo1212/RIOT,smlng/RIOT,authmillenon/RIOT,kaspar030/RIOT,aeneby/RIOT,OTAkeys/RIOT,OlegHahm/RIOT,ant9000/RIOT,OTAkeys/RIOT,authmillenon/RIOT,mtausig/RIOT,kYc0o/RIOT,authmillenon/RIOT,OlegHahm/RIOT,aeneby/RIOT,miri64/RIOT,kYc0o/RIOT,aeneby/RIOT,yogo1212/RIOT,kYc0o/RIOT,RIOT-OS/RIOT,ant9000/RIOT,OTAkeys/RIOT,x3ro/RIOT,basilfx/RIOT,smlng/RIOT,cladmi/RIOT,basilfx/RIOT,toonst/RIOT,toonst/RIOT,cladmi/RIOT,RIOT-OS/RIOT,jasonatran/RIOT,toonst/RIOT,kaspar030/RIOT,jasonatran/RIOT,ant9000/RIOT,miri64/RIOT,mtausig/RIOT,x3ro/RIOT,miri64/RIOT,rfuentess/RIOT,kaspar030/RIOT,OlegHahm/RIOT,yogo1212/RIOT,kYc0o/RIOT,aeneby/RIOT,smlng/RIOT,x3ro/RIOT,basilfx/RIOT,rfuentess/RIOT,OlegHahm/RIOT,smlng/RIOT,authmillenon/RIOT,OlegHahm/RIOT,kaspar030/RIOT,cladmi/RIOT,josephnoir/RIOT,ant9000/RIOT,jasonatran/RIOT,mtausig/RIOT,josephnoir/RIOT,mtausig/RIOT,josephnoir/RIOT,x3ro/RIOT,smlng/RIOT,cladmi/RIOT,josephnoir/RIOT,jasonatran/RIOT,yogo1212/RIOT,RIOT-OS/RIOT,mtausig/RIOT,aeneby/RIOT,rfuentess/RIOT,kaspar030/RIOT,RIOT-OS/RIOT,RIOT-OS/RIOT,authmillenon/RIOT,cladmi/RIOT,rfuentess/RIOT,OTAkeys/RIOT,toonst/RIOT,jasonatran/RIOT,rfuentess/RIOT,josephnoir/RIOT,x3ro/RIOT,kYc0o/RIOT,yogo1212/RIOT,yogo1212/RIOT