Add static keyword to all project globals whose scope should be restricted to the same module as they are declared in.
Tighten up the HID class bootloader code slightly, document that it currently exceeds 2KB of bootloader space for all models other than the Series 2 USB AVRs.
This commit is contained in:
parent
57b382558d
commit
782614dbb5
62 changed files with 192 additions and 211 deletions
|
@ -53,6 +53,7 @@ USB_ClassInfo_MS_Device_t DiskDevice_MS_Interface =
|
|||
},
|
||||
};
|
||||
|
||||
|
||||
void DiskDevice_USBTask(void)
|
||||
{
|
||||
MS_Device_USBTask(&DiskDevice_MS_Interface);
|
||||
|
|
|
@ -47,6 +47,7 @@ USB_ClassInfo_MS_Host_t DiskHost_MS_Interface =
|
|||
},
|
||||
};
|
||||
|
||||
|
||||
void DiskHost_USBTask(void)
|
||||
{
|
||||
if (USB_HostState == HOST_STATE_Addressed)
|
||||
|
|
|
@ -42,7 +42,7 @@
|
|||
/** Structure to hold the SCSI response data to a SCSI INQUIRY command. This gives information about the device's
|
||||
* features and capabilities.
|
||||
*/
|
||||
SCSI_Inquiry_Response_t InquiryData =
|
||||
static const SCSI_Inquiry_Response_t InquiryData =
|
||||
{
|
||||
.DeviceType = DEVICE_TYPE_BLOCK,
|
||||
.PeripheralQualifier = 0,
|
||||
|
@ -74,7 +74,7 @@ SCSI_Inquiry_Response_t InquiryData =
|
|||
/** Structure to hold the sense data for the last issued SCSI command, which is returned to the host after a SCSI REQUEST SENSE
|
||||
* command is issued. This gives information on exactly why the last command failed to complete.
|
||||
*/
|
||||
SCSI_Request_Sense_Response_t SenseData =
|
||||
static SCSI_Request_Sense_Response_t SenseData =
|
||||
{
|
||||
.ResponseCode = 0x70,
|
||||
.AdditionalLength = 0x0A,
|
||||
|
|
|
@ -43,6 +43,7 @@ FILE DiskStream = FDEV_SETUP_STREAM(NULL, Disk_getchar, _FDEV_SETUP_READ);
|
|||
/** Petite FAT Fs structure to hold the internal state of the FAT driver for the Dataflash contents. */
|
||||
FATFS DiskFATState;
|
||||
|
||||
|
||||
/** Stream character fetching routine for the FAT driver so that characters from the currently open file can be
|
||||
* read in sequence when applied to a stdio stream.
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue