Ttelmah Guest
|
|
Posted: Wed Nov 26, 2008 8:46 am |
|
|
Depends on your compiler version.
With a 'V3' compiler, you need to go DIY. However there is code for several SPI devices driven using software, in the drivers directory, and you can probably 'borrow' what is needed from this.
With a V4 compiler, the #USE SPI setup, exists, and this supports both software and hardware SPI, using a stream name, and the spi_xfer call to do the I/O.
Best Wishes |
|