projects
/
pub
/
USBasp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Altered all endpoint/pipe stream transfers so that the new BytesProcessed parameter...
[pub/USBasp.git]
/
Demos
/
Device
/
LowLevel
/
MassStorage
/
Lib
/
SCSI.c
diff --git
a/Demos/Device/LowLevel/MassStorage/Lib/SCSI.c
b/Demos/Device/LowLevel/MassStorage/Lib/SCSI.c
index
9073aa3
..
0400cc2
100644
(file)
--- a/
Demos/Device/LowLevel/MassStorage/Lib/SCSI.c
+++ b/
Demos/Device/LowLevel/MassStorage/Lib/SCSI.c
@@
-166,12
+166,10
@@
static bool SCSI_Command_Inquiry(void)
}
/* Write the INQUIRY data to the endpoint */
}
/* Write the INQUIRY data to the endpoint */
- Endpoint_Write_Stream_LE(&InquiryData, BytesTransferred, StreamCallback_AbortOnMassStoreReset);
-
- uint8_t PadBytes[AllocationLength - BytesTransferred];
+ Endpoint_Write_Stream_LE(&InquiryData, BytesTransferred, NULL);
/* Pad out remaining bytes with 0x00 */
/* Pad out remaining bytes with 0x00 */
- Endpoint_
Write_Stream_LE(&PadBytes, sizeof(PadBytes), StreamCallback_AbortOnMassStoreReset
);
+ Endpoint_
Null_Stream((AllocationLength - BytesTransferred), NULL
);
/* Finalize the stream transfer to send the last packet */
Endpoint_ClearIN();
/* Finalize the stream transfer to send the last packet */
Endpoint_ClearIN();
@@
-193,12
+191,10
@@
static bool SCSI_Command_Request_Sense(void)
uint8_t BytesTransferred = (AllocationLength < sizeof(SenseData))? AllocationLength : sizeof(SenseData);
/* Send the SENSE data - this indicates to the host the status of the last command */
uint8_t BytesTransferred = (AllocationLength < sizeof(SenseData))? AllocationLength : sizeof(SenseData);
/* Send the SENSE data - this indicates to the host the status of the last command */
- Endpoint_Write_Stream_LE(&SenseData, BytesTransferred, StreamCallback_AbortOnMassStoreReset);
-
- uint8_t PadBytes[AllocationLength - BytesTransferred];
+ Endpoint_Write_Stream_LE(&SenseData, BytesTransferred, NULL);
/* Pad out remaining bytes with 0x00 */
/* Pad out remaining bytes with 0x00 */
- Endpoint_
Write_Stream_LE(&PadBytes, sizeof(PadBytes), StreamCallback_AbortOnMassStoreReset
);
+ Endpoint_
Null_Stream((AllocationLength - BytesTransferred), NULL
);
/* Finalize the stream transfer to send the last packet */
Endpoint_ClearIN();
/* Finalize the stream transfer to send the last packet */
Endpoint_ClearIN();