I am staring down a rabbit hole and wondering if it's going to be worth it. I have a Dragino LORA/GPS hat. The LORA bit is SPI. There is a nice library (a fork of RadioHead) where I can just implement an SPI driver, but it's a few notches above my pay grade. I successfully took some bbb SPI code and the spi_scan that comes with the RadioHead library to query a register and get a version off the device. That's a far cry from cutting into the code and making a new hardware driver for the BBB.
What I'm most interested in are the ways I can access the SPI devices. I notice for the raspberry pi driver they're using a hardware library with function calls like this: bcm2835_spi_setDataMode(mode); For my test I used /dev/spidev0.0 with the ioctl and SPI_IOC_MESSAGE. Will I have to write ioctl functions like these or is there a hardware library I can leverage: fd = open(SPI_PATH, O_RDWR); ioctl(fd, SPI_IOC_WR_MODE, &mode); ... I am up for a challenge but I do not want to try and replicate library functions if they exist. I looked at the Adafruit-beaglebone-io-python lib as it has SPI functions (and I might just try to use that) but it seems they, too, are using ioctl. -- For more options, visit http://beagleboard.org/discuss --- You received this message because you are subscribed to the Google Groups "BeagleBoard" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/d71c0ebc-a5b0-41cb-bd60-a26df4d3dfea%40googlegroups.com.
