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.
This commit is contained in:
Dean Camera 2009-08-26 07:01:32 +00:00
parent f547eb3608
commit ee744abb7e
12 changed files with 407 additions and 81 deletions

View file

@ -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);