Custom SAMD51 Board (Add pins in variant files) Issue

Hi S1buell,

Please find attached the "variant.h" and "variant.cpp" files for my custom SAMD51J20A board.

The "variant" files for my custom board more closely resemble the pin allocations of the Arduno Zero than Adafruit's boards.

In addition, I also added the SAMD51J20A build flag to the "boards.txt" file. This allows the compiler to access the CMSIS pin definitions for the "J" variant:

adafruit_metro_m4.build.extra_flags=-D__SAMD51J20A__ -D__SAMD51__ {build.usb_flags} -D__FPU_PRESENT -DARM_MATH_CM4 -mfloat-abi=hard -mfpu=fpv4-sp-d16

variant.h (7.77 KB)

variant.cpp (20.4 KB)