Quantcast
Channel: Intel Communities: Message List
Viewing all articles
Browse latest Browse all 20191

intel galileo mraa spi library

$
0
0

I have an Intel galileo board, that communicates with a shield over SPI. I'm porting an Arduino library for the shield to use the MRAA SPI library instead of the arduino SPI library. I've a question.

MRAA SPI library

According to the above link (MRAA SPI library)

  1. Instead of SPI.begin() in the shield library I'm guessing that I replace this directly with spi = mraa_spi_init(0);Question where do I put mraa_spi_context spi; In the library's .cpp file or .h file? Or do I put it in main()?

Thank you


Viewing all articles
Browse latest Browse all 20191

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>