From aaa0bed556d0fa424b831418a7ce2531653a8b03 Mon Sep 17 00:00:00 2001 From: Dean Camera Date: Mon, 23 Nov 2009 12:40:14 +0000 Subject: The incomplete StandaloneProgrammer project now uses Host and Device Mass storage classes, so that program data can either be loaded onto the device's Dataflash storage, or read off an attached USB memory stick. The USB target family and allowable USB mode tokens are now public and documented (USB_CAN_BE_*, USB_SERIES_*_AVR). The SCSI_Request_Sense_Response_t and SCSI_Inquiry_Response_t type defines are now part of the Mass Storage Class driver common defines, rather than being defined in the Host mode Class driver section only. The USB_MODE_HOST token is now defined even when host mode is not available. Added missing CDC_Host_CreateBlockingStream() function code to the CDC Host Class driver. --- Projects/Incomplete/StandaloneProgrammer/Lib/DataflashManager.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Projects/Incomplete/StandaloneProgrammer/Lib/DataflashManager.c') diff --git a/Projects/Incomplete/StandaloneProgrammer/Lib/DataflashManager.c b/Projects/Incomplete/StandaloneProgrammer/Lib/DataflashManager.c index 6646278ee5..d79f5f7427 100644 --- a/Projects/Incomplete/StandaloneProgrammer/Lib/DataflashManager.c +++ b/Projects/Incomplete/StandaloneProgrammer/Lib/DataflashManager.c @@ -39,6 +39,7 @@ #define INCLUDE_FROM_DATAFLASHMANAGER_C #include "DataflashManager.h" +#if defined(USB_CAN_BE_DEVICE) /** Writes blocks (OS blocks, not Dataflash pages) to the storage medium, the board dataflash IC(s), from * the pre-selected data OUT endpoint. This routine reads in OS sized blocks from the endpoint and writes * them to the dataflash in Dataflash page sized blocks. @@ -523,3 +524,4 @@ bool DataflashManager_CheckDataflashOperation(void) return true; } +#endif -- cgit v1.2.3