Using SD.h with Sercom4 pinout Arduino zero


I have developed a shield for the arduino/genuino zero. I am using the SD card libary "SD.h" for writing to the SD card. However i would like to change the pin out for the SPI to use (D10 D11 D12 SERCOM1) instead of SERCOM 4 and still use the same library. Has anyone done this before ? i believe i would need to change the varient.cpp and the varient.h files.

Best Regards

Here's a Tutorial by Adafruit on configuring SERCOM ports for their Feather M0. It uses the same SAMD21 processor as the Arduino Zero. Might be helpful.