Add:SPI* SpiPointer() to share the SPI bus.

Dependencies:   FATFileSystem

Fork of SDFileSystem by Neil Thiessen

Files at this revision

API Documentation at this revision

Comitter:
ryood
Date:
Tue Nov 22 10:05:06 2016 +0000
Parent:
26:e4d2567200db
Commit message:
Add: SPI* SpiPointer() to share the SPI bus

Changed in this revision

SDFileSystem.h Show annotated file Show diff for this revision Revisions of this file
--- a/SDFileSystem.h	Mon Aug 29 15:05:27 2016 +0000
+++ b/SDFileSystem.h	Tue Nov 22 10:05:06 2016 +0000
@@ -167,6 +167,10 @@
     virtual int disk_write(const uint8_t* buffer, uint32_t sector, uint32_t count);
     virtual int disk_sync();
     virtual uint32_t disk_sectors();
+    
+    // 2016.11.22 by ryood
+    // For share the SPI bus
+    SPI* SpiPointer() { return &m_Spi; }
 
 private:
     //Commands