projects
/
pub
/
lufa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
More work on the Mass Storage Host mode Class driver.
[pub/lufa.git]
/
Demos
/
Host
/
ClassDriver
/
MassStorageHost
/
MassStorageHost.c
diff --git
a/Demos/Host/ClassDriver/MassStorageHost/MassStorageHost.c
b/Demos/Host/ClassDriver/MassStorageHost/MassStorageHost.c
index
19c77c3
..
0f9134f
100644
(file)
--- a/
Demos/Host/ClassDriver/MassStorageHost/MassStorageHost.c
+++ b/
Demos/Host/ClassDriver/MassStorageHost/MassStorageHost.c
@@
-132,8
+132,8
@@
int main(void)
\r
printf("Vendor \"%.8s\", Product \"%.16s\"\r\n", InquiryData.VendorID, InquiryData.ProductID);
\r
\r
\r
printf("Vendor \"%.8s\", Product \"%.16s\"\r\n", InquiryData.VendorID, InquiryData.ProductID);
\r
\r
+ printf("Waiting until ready...\r\n");
\r
bool DeviceReady;
\r
bool DeviceReady;
\r
- printf("Waiting until ready...\r\n"));
\r
\r
do
\r
{
\r
\r
do
\r
{
\r
@@
-150,7
+150,7
@@
int main(void)
puts_P(PSTR("Retrieving Capacity... "));
\r
\r
SCSI_Capacity_t DiskCapacity;
\r
puts_P(PSTR("Retrieving Capacity... "));
\r
\r
SCSI_Capacity_t DiskCapacity;
\r
- if (MS_Host_ReadDeviceCapacity(0, &DiskCapacity))
\r
+ if (MS_Host_ReadDeviceCapacity(
&FlashDisk_MS_Interface,
0, &DiskCapacity))
\r
{
\r
printf("Error retrieving device capacity.\r\n");
\r
LEDs_SetAllLEDs(LEDMASK_USB_ERROR);
\r
{
\r
printf("Error retrieving device capacity.\r\n");
\r
LEDs_SetAllLEDs(LEDMASK_USB_ERROR);
\r