projects
/
pub
/
USBasp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Applied STATIC_ENDPOINT_CONFIGURATION and FIXED_CONTROL_SIZE tokens to all Device...
[pub/USBasp.git]
/
Demos
/
Device
/
MassStorage
/
SCSI.c
diff --git
a/Demos/Device/MassStorage/SCSI.c
b/Demos/Device/MassStorage/SCSI.c
index
d50f63d
..
6ddd144
100644
(file)
--- a/
Demos/Device/MassStorage/SCSI.c
+++ b/
Demos/Device/MassStorage/SCSI.c
@@
-43,31
+43,31
@@
*/
\r
SCSI_Inquiry_Response_t InquiryData =
\r
{
\r
*/
\r
SCSI_Inquiry_Response_t InquiryData =
\r
{
\r
-
DeviceType:
0,
\r
-
PeripheralQualifier:
0,
\r
+
.DeviceType =
0,
\r
+
.PeripheralQualifier =
0,
\r
\r
\r
-
Removable:
true,
\r
+
.Removable =
true,
\r
\r
\r
-
Version:
0,
\r
+
.Version =
0,
\r
\r
\r
-
ResponseDataFormat:
2,
\r
-
NormACA:
false,
\r
-
TrmTsk:
false,
\r
-
AERC:
false,
\r
+
.ResponseDataFormat =
2,
\r
+
.NormACA =
false,
\r
+
.TrmTsk =
false,
\r
+
.AERC =
false,
\r
\r
\r
-
AdditionalLength:
0x1F,
\r
+
.AdditionalLength =
0x1F,
\r
\r
\r
-
SoftReset:
false,
\r
-
CmdQue:
false,
\r
-
Linked:
false,
\r
-
Sync:
false,
\r
-
WideBus16Bit:
false,
\r
-
WideBus32Bit:
false,
\r
-
RelAddr:
false,
\r
+
.SoftReset =
false,
\r
+
.CmdQue =
false,
\r
+
.Linked =
false,
\r
+
.Sync =
false,
\r
+
.WideBus16Bit =
false,
\r
+
.WideBus32Bit =
false,
\r
+
.RelAddr =
false,
\r
\r
\r
-
VendorID:
"LUFA",
\r
-
ProductID:
"Dataflash Disk",
\r
-
RevisionID:
{'0','.','0','0'},
\r
+
.VendorID =
"LUFA",
\r
+
.ProductID =
"Dataflash Disk",
\r
+
.RevisionID =
{'0','.','0','0'},
\r
};
\r
\r
/** Structure to hold the sense data for the last issued SCSI command, which is returned to the host after a SCSI REQUEST SENSE
\r
};
\r
\r
/** Structure to hold the sense data for the last issued SCSI command, which is returned to the host after a SCSI REQUEST SENSE
\r
@@
-75,8
+75,8
@@
SCSI_Inquiry_Response_t InquiryData =
*/
\r
SCSI_Request_Sense_Response_t SenseData =
\r
{
\r
*/
\r
SCSI_Request_Sense_Response_t SenseData =
\r
{
\r
-
ResponseCode:
0x70,
\r
-
AdditionalLength:
0x0A,
\r
+
.ResponseCode =
0x70,
\r
+
.AdditionalLength =
0x0A,
\r
};
\r
\r
\r
};
\r
\r
\r
@@
-174,7
+174,7
@@
static bool SCSI_Command_Inquiry(void)
Endpoint_Write_Stream_LE(&PadBytes, (AllocationLength - BytesTransferred), AbortOnMassStoreReset);
\r
\r
/* Finalize the stream transfer to send the last packet */
\r
Endpoint_Write_Stream_LE(&PadBytes, (AllocationLength - BytesTransferred), AbortOnMassStoreReset);
\r
\r
/* Finalize the stream transfer to send the last packet */
\r
- Endpoint_Clear
CurrentBank
();
\r
+ Endpoint_Clear
IN
();
\r
\r
/* Succeed the command and update the bytes transferred counter */
\r
CommandBlock.DataTransferLength -= BytesTransferred;
\r
\r
/* Succeed the command and update the bytes transferred counter */
\r
CommandBlock.DataTransferLength -= BytesTransferred;
\r
@@
-201,7
+201,7
@@
static bool SCSI_Command_Request_Sense(void)
Endpoint_Write_Stream_LE(&PadBytes, (AllocationLength - BytesTransferred), AbortOnMassStoreReset);
\r
\r
/* Finalize the stream transfer to send the last packet */
\r
Endpoint_Write_Stream_LE(&PadBytes, (AllocationLength - BytesTransferred), AbortOnMassStoreReset);
\r
\r
/* Finalize the stream transfer to send the last packet */
\r
- Endpoint_Clear
CurrentBank
();
\r
+ Endpoint_Clear
IN
();
\r
\r
/* Succeed the command and update the bytes transferred counter */
\r
CommandBlock.DataTransferLength -= BytesTransferred;
\r
\r
/* Succeed the command and update the bytes transferred counter */
\r
CommandBlock.DataTransferLength -= BytesTransferred;
\r
@@
-227,7
+227,7
@@
static bool SCSI_Command_Read_Capacity_10(void)
return false;
\r
\r
/* Send the endpoint data packet to the host */
\r
return false;
\r
\r
/* Send the endpoint data packet to the host */
\r
- Endpoint_Clear
CurrentBank
();
\r
+ Endpoint_Clear
IN
();
\r
\r
/* Succeed the command and update the bytes transferred counter */
\r
CommandBlock.DataTransferLength -= 8;
\r
\r
/* Succeed the command and update the bytes transferred counter */
\r
CommandBlock.DataTransferLength -= 8;
\r