Seiji Ainoguchi / SerialFlash

Dependents:   SerialFlashTest

Fork of SerialFlash by Seiji Ainoguchi

Revision:
2:6f8ab876b516
Parent:
0:d0117f54a7ee
--- a/SerialFlashDeviceCreator.cpp	Wed Mar 02 00:28:03 2011 +0000
+++ b/SerialFlashDeviceCreator.cpp	Wed Mar 02 16:09:09 2011 +0000
@@ -3,15 +3,15 @@
 #include "M25PDevice.h"
 #include "SerialFlashDeviceCreator.h"
 
-ISerialFlashDevice* SerialFlashDeviceCreator::Create(ISPI* pSPI)
+ISerialFlashDevice* SerialFlashDeviceCreator::Create(ISPICommand* pSPICommand)
 {
-    if (M25PDevice::IsSupported(pSPI))
+    if (M25PDevice::IsSupported(pSPICommand))
     {
-        return M25PDevice::Create(pSPI);
+        return M25PDevice::Create(pSPICommand);
     }
-    if (SST25Device::IsSupported(pSPI))
+    if (SST25Device::IsSupported(pSPICommand))
     {
-        return SST25Device::Create(pSPI);
+        return SST25Device::Create(pSPICommand);
     }
     return NULL;
 }