I'm looking to expand the TinyG2 code with a stand-alone operation mode, so I can operate from an LCD and SD card.
What is the best method of getting access to the SPI port from the G2 code? I see there is the Motate/SamSPI code, but the template instanciation is commented out, and produces an error if it is enabled.
On the due, pins 10, 4 and 52 correspond to channels 0, 1 and 2 respectively. So the only pin correctly configured above is pin 52. Using any of the others will result in an unexpected CS pin being asserted.