diff options
author | Dean Camera <dean@fourwalledcubicle.com> | 2009-08-26 07:01:32 +0000 |
---|---|---|
committer | Dean Camera <dean@fourwalledcubicle.com> | 2009-08-26 07:01:32 +0000 |
commit | ee744abb7efd5fef49782991d58895e10696809a (patch) | |
tree | 1efb545a069d2e969be60a7e4f827b26024ac13b /Demos/Host | |
parent | f547eb36080dacf275cd94fc3ddfb4c618c587fa (diff) | |
download | lufa-ee744abb7efd5fef49782991d58895e10696809a.tar.gz lufa-ee744abb7efd5fef49782991d58895e10696809a.tar.bz2 lufa-ee744abb7efd5fef49782991d58895e10696809a.zip |
More work on the Mass Storage Host mode Class driver.
Added ATTR_NON_NULL_PTR_ARG() attributes to the class drivers to improve user code reliability by disallowing explicit NULL pointers as pointer parameters in function calls where the parameter must not be NULL.
Disabled building of the Demos/Host/ClassDriver directory until Host Mode Class drivers are complete to prevent build errors in the meantime.
Diffstat (limited to 'Demos/Host')
-rw-r--r-- | Demos/Host/ClassDriver/MassStorageHost/MassStorageHost.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Demos/Host/ClassDriver/MassStorageHost/MassStorageHost.c b/Demos/Host/ClassDriver/MassStorageHost/MassStorageHost.c index 19c77c378..0f9134fea 100644 --- a/Demos/Host/ClassDriver/MassStorageHost/MassStorageHost.c +++ b/Demos/Host/ClassDriver/MassStorageHost/MassStorageHost.c @@ -132,8 +132,8 @@ int main(void) printf("Vendor \"%.8s\", Product \"%.16s\"\r\n", InquiryData.VendorID, InquiryData.ProductID);
+ printf("Waiting until ready...\r\n");
bool DeviceReady;
- printf("Waiting until ready...\r\n"));
do
{
@@ -150,7 +150,7 @@ int main(void) puts_P(PSTR("Retrieving Capacity... "));
SCSI_Capacity_t DiskCapacity;
- if (MS_Host_ReadDeviceCapacity(0, &DiskCapacity))
+ if (MS_Host_ReadDeviceCapacity(&FlashDisk_MS_Interface, 0, &DiskCapacity))
{
printf("Error retrieving device capacity.\r\n");
LEDs_SetAllLEDs(LEDMASK_USB_ERROR);
|