Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Erik Strand
lufa
Commits
add51923
Commit
add51923
authored
May 06, 2010
by
Dean Camera
Browse files
Oops - typo in the updated TeensyHID bootloader code when compiled for the non Teensy++ targets.
parent
29859238
Changes
3
Hide whitespace changes
Inline
Side-by-side
Bootloaders/TeensyHID/Descriptors.c
View file @
add51923
...
...
@@ -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
...
...
Bootloaders/TeensyHID/TeensyHID.c
View file @
add51923
...
...
@@ -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
()))
...
...
Bootloaders/TeensyHID/makefile
View file @
add51923
...
...
@@ -48,7 +48,7 @@
# MCU name
MCU
=
at
90usb1287
MCU
=
at
mega32u4
# 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
=
0x
1e
000
BOOT_START
=
0x
7
000
# Output format. (can be srec, ihex, binary)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment