SAMD21G18A SERCOM Modification

Hi all.

I have a custom board that has SPI connections on different SERCOMs, eg. MOSI, MISO on Sercom5, but CLK is on SERCOM4. I am trying to modify the samd21g18a.h.

I changed the CLK pin from SERCOM4 to SERCOM5 with the same pad., but it doesn't seem to work.

Also, in the sercom.h, I would like to add another definition below, like SPI_PAD_1_SCK_3, will it work?

typedef enum
{
SPI_PAD_0_SCK_1 = 0,
SPI_PAD_2_SCK_3,
SPI_PAD_3_SCK_1,
SPI_PAD_0_SCK_3
} SercomSpiTXPad;

Thanks,

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.