diff options
| author | Dean <Dean@d5102386-fcda-11dd-9fdb-3debd5008f28> | 2010-05-06 02:15:39 +0000 |
|---|---|---|
| committer | Dean <Dean@d5102386-fcda-11dd-9fdb-3debd5008f28> | 2010-05-06 02:15:39 +0000 |
| commit | 24a010821db386a7b2f7d498c901e48774759cce (patch) | |
| tree | b7d56deb6fe7b55aae03fd5f56c29363b77fb818 /Bootloaders/TeensyHID | |
| parent | 0579c101d803268f7053f0662443cad98bb7ca88 (diff) | |
Oops - typo in the updated TeensyHID bootloader code when compiled for the non Teensy++ targets.
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1238 d5102386-fcda-11dd-9fdb-3debd5008f28
Diffstat (limited to 'Bootloaders/TeensyHID')
| -rw-r--r-- | Bootloaders/TeensyHID/Descriptors.c | 2 | ||||
| -rw-r--r-- | Bootloaders/TeensyHID/TeensyHID.c | 6 | ||||
| -rw-r--r-- | Bootloaders/TeensyHID/makefile | 4 |
3 files changed, 8 insertions, 4 deletions
diff --git a/Bootloaders/TeensyHID/Descriptors.c b/Bootloaders/TeensyHID/Descriptors.c index d421d90f..52d6c737 100644 --- a/Bootloaders/TeensyHID/Descriptors.c +++ b/Bootloaders/TeensyHID/Descriptors.c @@ -51,7 +51,7 @@ USB_Descriptor_HIDReport_Datatype_t HIDReport[] = 0x0a, 0x19, 0x00, /* Usage (Vendor Defined) */
0x75, 0x08, /* Report Size (8) */
#if (SPM_PAGESIZE == 128) /* Report Count (SPM_PAGESIZE + 2) */
- 0x95, (SPM_PAGESIZE + 2)
+ 0x95, (SPM_PAGESIZE + 2),
#else
0x96, ((SPM_PAGESIZE + 2) & 0xFF), ((SPM_PAGESIZE + 2) >> 8),
#endif
diff --git a/Bootloaders/TeensyHID/TeensyHID.c b/Bootloaders/TeensyHID/TeensyHID.c index 4e287bcf..b93be6d1 100644 --- a/Bootloaders/TeensyHID/TeensyHID.c +++ b/Bootloaders/TeensyHID/TeensyHID.c @@ -120,7 +120,11 @@ void EVENT_USB_Device_UnhandledControlRequest(void) boot_spm_busy_wait();
/* Write each of the FLASH page's bytes in sequence */
- for (uint16_t PageByte = 0; PageByte < SPM_PAGESIZE; PageByte += 2)
+ #if (SPM_PAGESIZE == 128)
+ for (uint8_t PageByte = 0; PageByte < SPM_PAGESIZE; PageByte += 2)
+ #else
+ for (uint16_t PageByte = 0; PageByte < SPM_PAGESIZE; PageByte += 2)
+ #endif
{
/* Check if endpoint is empty - if so clear it and wait until ready for next packet */
if (!(Endpoint_BytesInEndpoint()))
diff --git a/Bootloaders/TeensyHID/makefile b/Bootloaders/TeensyHID/makefile index 0d12374b..404b55f9 100644 --- a/Bootloaders/TeensyHID/makefile +++ b/Bootloaders/TeensyHID/makefile @@ -48,7 +48,7 @@ # MCU name
-MCU = at90usb1287
+MCU = atmega32u4
# Target board (see library "Board Types" documentation, NONE for projects not requiring
@@ -86,7 +86,7 @@ F_CLOCK = $(F_CPU) # Starting byte address of the bootloader
-BOOT_START = 0x1e000
+BOOT_START = 0x7000
# Output format. (can be srec, ihex, binary)
|
