SPI Master Example

From the original Synthetos forum (2011–2025)

Started by mstanisz on in TinyG Support. 1 reply, last activity Jul 23, 2018.

#

Hi all,

I'm using a v9 TinyG with the G2 codebase. I was interested in modifying the code so that the TinyG could talk to an additional SPI slave, like it does with the SD card. Could anyone point me to an example or section of the G2 code that performs a simple SPI read/write with a slave?

I see the SPI infrastructure in xio.h/cpp and SamSPI.h/cpp , but haven't been able to dig out where the TinyG initializes and uses the SPI interface for the SD card other than the basic classes.

Any help is appreciated.

Best,
Matt

Staff #

I doubt you will find much help here, suggest you post this question to
https://github.com/synthetos/g2/issues
where the devs and 'modifiers/enhancers' like yourself hang out.

FYI, I don't believe there is much activity making the SD card slot actually work on the V9(or DUE, for that matter), at least in the mainstream Synthetos code base.
Search issues for other SPI activities.

This topic is from the original forum (July 2018). Your reply starts a new discussion linked to it.

Reply

Different problem? Ask a new question

Back to TinyG Support or latest activity.