Added accessor function for the spi device to spi.h

This commit is contained in:
Roger Clark 2015-03-18 20:32:56 +11:00
parent bfc6440ccb
commit e9f67b2f63
1 changed files with 3 additions and 0 deletions

View File

@ -286,6 +286,9 @@ public:
* @see HardwareSPI::read()
*/
uint8 recv(void);
spi_dev *dev(){ return spi_d;}
private:
spi_dev *spi_d;
uint8_t _SSPin;