Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Erik Strand
lufa
Commits
a94b1911
Commit
a94b1911
authored
Mar 17, 2009
by
Dean Camera
Browse files
Fixed broken Magstripe project and TeensyHID bootloader.
parent
d770d98b
Changes
5
Hide whitespace changes
Inline
Side-by-side
Bootloaders/TeensyHID/makefile
View file @
a94b1911
...
...
@@ -75,7 +75,7 @@ BOARD = USBKEY
# F_CPU = 16000000
# F_CPU = 18432000
# F_CPU = 20000000
F_CPU
=
8
000000
F_CPU
=
16
000000
# Input clock frequency.
...
...
@@ -89,7 +89,7 @@ F_CPU = 8000000
#
# If no clock division is performed on the input clock inside the AVR (via the
# CPU clock adjust registers or the clock division fuses), this will be equal to F_CPU.
F_CLOCK
=
8
000000
F_CLOCK
=
16
000000
# Output format. (can be srec, ihex, binary)
...
...
Projects/Magstripe/CircularBitBuffer.h
View file @
a94b1911
...
...
@@ -47,7 +47,7 @@
#if (defined(__AVR_AT90USB1287__) || defined(__AVR_AT90USB647__) || \
defined
(
__AVR_AT90USB1286__
)
||
defined
(
__AVR_AT90USB646__
))
||
defined
(
__DOXYGEN__
)
/** Maximum number of bits which can be stored into a bit buffer. The memory usage is one eigth of this value per buffer. */
#define MAX_BITS
20480
#define MAX_BITS
8192
#else
#define MAX_BITS 1024
#endif
...
...
Projects/Magstripe/Magstripe.c
View file @
a94b1911
...
...
@@ -316,13 +316,13 @@ bool GetNextReport(USB_KeyboardReport_Data_t* ReportData)
if
(
OddReport
)
{
/* Set the report key code to the key code for the next data bit */
ReportData
->
KeyCode
[
0
]
=
BitBuffer_GetNextBit
(
Buffer
)
?
KEY_1
:
KEY_0
;
ReportData
->
KeyCode
=
BitBuffer_GetNextBit
(
Buffer
)
?
KEY_1
:
KEY_0
;
/* If buffer is now empty, a new line must be sent instead of the terminating bit */
if
(
!
(
Buffer
->
Elements
))
{
/* Set the keycode to the code for an enter key press */
ReportData
->
KeyCode
[
0
]
=
KEY_ENTER
;
ReportData
->
KeyCode
=
KEY_ENTER
;
}
}
...
...
Projects/Magstripe/Magstripe.h
View file @
a94b1911
...
...
@@ -98,7 +98,7 @@
{
uint8_t
Modifier
;
/**< Modifier byte, indicating pressed modifier keys such as CTRL or ALT */
uint8_t
Reserved
;
/**< Reserved for OEM use, always set to 0 */
uint8_t
KeyCode
[
6
]
;
/**< Key code array for pressed keys - up to six can be given simultaneously */
uint8_t
KeyCode
;
/**< Key code array for pressed keys - up to six can be given simultaneously */
}
USB_KeyboardReport_Data_t
;
/* Event Handlers: */
...
...
Projects/Magstripe/makefile
View file @
a94b1911
...
...
@@ -66,7 +66,7 @@ MCU = at90usb1287
# Target board (see library BoardTypes.h documentation, USER or blank for projects not requiring
# LUFA board drivers). If USER is selected, put custom board drivers in a directory called
# "Board" inside the application directory.
BOARD
=
US
BKEY
BOARD
=
US
ER
# Processor frequency.
...
...
@@ -101,7 +101,7 @@ F_CPU = 16000000
#
# If no clock division is performed on the input clock inside the AVR (via the
# CPU clock adjust registers or the clock division fuses), this will be equal to F_CPU.
F_CLOCK
=
8
000000
F_CLOCK
=
16
000000
# Output format. (can be srec, ihex, binary)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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