projects
/
pub
/
USBasp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Minor updates to the Benito programmer - remove redundant PORT register manipulations.
[pub/USBasp.git]
/
Demos
/
Host
/
LowLevel
/
KeyboardHostWithParser
/
KeyboardHostWithParser.c
diff --git
a/Demos/Host/LowLevel/KeyboardHostWithParser/KeyboardHostWithParser.c
b/Demos/Host/LowLevel/KeyboardHostWithParser/KeyboardHostWithParser.c
index
e9af225
..
eee1755
100644
(file)
--- a/
Demos/Host/LowLevel/KeyboardHostWithParser/KeyboardHostWithParser.c
+++ b/
Demos/Host/LowLevel/KeyboardHostWithParser/KeyboardHostWithParser.c
@@
-43,7
+43,7
@@
int main(void)
{
\r
SetupHardware();
\r
\r
{
\r
SetupHardware();
\r
\r
- puts_P(PSTR(ESC_
RESET ESC_
FG_CYAN "Keyboard HID Parser Host Demo running.\r\n" ESC_FG_WHITE));
\r
+ puts_P(PSTR(ESC_FG_CYAN "Keyboard HID Parser Host Demo running.\r\n" ESC_FG_WHITE));
\r
\r
LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY);
\r
\r
\r
LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY);
\r
\r
@@
-166,9
+166,6
@@
void Keyboard_HID_Task(void)
break;
\r
}
\r
\r
break;
\r
}
\r
\r
- USB_HostState = HOST_STATE_Configured;
\r
- break;
\r
- case HOST_STATE_Configured:
\r
puts_P(PSTR("Processing HID Report.\r\n"));
\r
\r
/* Get and process the device's first HID report descriptor */
\r
puts_P(PSTR("Processing HID Report.\r\n"));
\r
\r
/* Get and process the device's first HID report descriptor */
\r
@@
-187,9
+184,9
@@
void Keyboard_HID_Task(void)
\r
puts_P(PSTR("Keyboard Enumerated.\r\n"));
\r
\r
\r
puts_P(PSTR("Keyboard Enumerated.\r\n"));
\r
\r
- USB_HostState = HOST_STATE_
Ready
;
\r
+ USB_HostState = HOST_STATE_
Configured
;
\r
break;
\r
break;
\r
- case HOST_STATE_
Ready
:
\r
+ case HOST_STATE_
Configured
:
\r
/* Select and unfreeze keyboard data pipe */
\r
Pipe_SelectPipe(KEYBOARD_DATAPIPE);
\r
Pipe_Unfreeze();
\r
/* Select and unfreeze keyboard data pipe */
\r
Pipe_SelectPipe(KEYBOARD_DATAPIPE);
\r
Pipe_Unfreeze();
\r