SPI Master Example

Home Forums TinyG TinyG Support SPI Master Example

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #11059
    mstanisz
    Member

    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

    #11060
    cmcgrath5035
    Moderator

    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.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.