diff options
author | Dean Camera <dean@fourwalledcubicle.com> | 2009-11-11 09:09:39 +0000 |
---|---|---|
committer | Dean Camera <dean@fourwalledcubicle.com> | 2009-11-11 09:09:39 +0000 |
commit | 04774208b6d4131466a2b5e44af314252ab1734e (patch) | |
tree | daf57c62f20881434ca23f2972e5ebee8c0eaf15 /Bootloaders | |
parent | 5de364163f5a7597ba2f54e37cdea493fbd1e7ff (diff) | |
download | lufa-04774208b6d4131466a2b5e44af314252ab1734e.tar.gz lufa-04774208b6d4131466a2b5e44af314252ab1734e.tar.bz2 lufa-04774208b6d4131466a2b5e44af314252ab1734e.zip |
Minor code cleanups for clarity.
Diffstat (limited to 'Bootloaders')
-rw-r--r-- | Bootloaders/DFU/Descriptors.c | 2 | ||||
-rw-r--r-- | Bootloaders/TeensyHID/TeensyHID.c | 5 |
2 files changed, 3 insertions, 4 deletions
diff --git a/Bootloaders/DFU/Descriptors.c b/Bootloaders/DFU/Descriptors.c index 6fcdc4bce..eb5c580b0 100644 --- a/Bootloaders/DFU/Descriptors.c +++ b/Bootloaders/DFU/Descriptors.c @@ -108,7 +108,7 @@ USB_Descriptor_Configuration_t ConfigurationDescriptor = .Attributes = (ATTR_CAN_UPLOAD | ATTR_CAN_DOWNLOAD),
- .DetachTimeout = 0x0000,
+ .DetachTimeout = 0x0000,
.TransferSize = 0x0c00,
.DFUSpecification = VERSION_BCD(01.01)
diff --git a/Bootloaders/TeensyHID/TeensyHID.c b/Bootloaders/TeensyHID/TeensyHID.c index f3d86a66f..4b9224abc 100644 --- a/Bootloaders/TeensyHID/TeensyHID.c +++ b/Bootloaders/TeensyHID/TeensyHID.c @@ -41,7 +41,6 @@ */
bool RunBootloader = true;
-
/** Main program entry point. This routine configures the hardware required by the bootloader, then continuously
* runs the bootloader processing routine until instructed to soft-exit.
*/
@@ -105,7 +104,7 @@ void EVENT_USB_Device_UnhandledControlRequest(void) {
Endpoint_ClearSETUP();
- /* Wait until the command (report) has been sent by the host */
+ /* Wait until the command has been sent by the host */
while (!(Endpoint_IsOUTReceived()));
/* Read in the write destination address */
@@ -123,7 +122,7 @@ void EVENT_USB_Device_UnhandledControlRequest(void) boot_spm_busy_wait();
/* Write each of the FLASH page's bytes in sequence */
- for (uint8_t PageByte = 0; PageByte < 128; PageByte += 2)
+ for (uint8_t PageByte = 0; PageByte < SPM_PAGESIZE; PageByte += 2)
{
/* Check if endpoint is empty - if so clear it and wait until ready for next packet */
if (!(Endpoint_BytesInEndpoint()))
|