Implement WRITE BUFFER and WRITE WITH VERIFY commands
[SCSI2SD-V6.git] / software / SCSI2SD / src / sd.h
index abb4507..3b4a11d 100755 (executable)
@@ -61,9 +61,13 @@ typedef struct
 } SdDevice;
 
 extern SdDevice sdDev;
+extern volatile uint8_t sdRxDMAComplete;
+extern volatile uint8_t sdTxDMAComplete;
 
 int sdInit(void);
 
+#define sdDMABusy() (!(sdRxDMAComplete && sdTxDMAComplete))
+
 void sdWriteMultiSectorPrep(void);
 void sdWriteMultiSectorDMA(uint8_t* outputBuffer);
 int sdWriteSectorDMAPoll(int sendStopToken);