This commit does the same thing as https://github.com/tinygo-org/tinygo/pull/597 but for samd51 series chips. Pin mode and pad numbers are automatically calculated from pin numbers, returning an error if no valid pinout is possible.
* machine/samd51: Fixes for UART2
* machine/feather-m4: Adding Feather M4