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
/
MouseHostWithParser
/
MouseHostWithParser.c
diff --git
a/Demos/Host/LowLevel/MouseHostWithParser/MouseHostWithParser.c
b/Demos/Host/LowLevel/MouseHostWithParser/MouseHostWithParser.c
index
2073019
..
63fce0d
100644
(file)
--- a/
Demos/Host/LowLevel/MouseHostWithParser/MouseHostWithParser.c
+++ b/
Demos/Host/LowLevel/MouseHostWithParser/MouseHostWithParser.c
@@
-43,7
+43,7
@@
int main(void)
{
\r
SetupHardware();
\r
\r
{
\r
SetupHardware();
\r
\r
- puts_P(PSTR(ESC_
RESET ESC_
FG_CYAN "Mouse HID Parser Host Demo running.\r\n" ESC_FG_WHITE));
\r
+ puts_P(PSTR(ESC_FG_CYAN "Mouse 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 Mouse_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
@@
-186,10
+183,10
@@
void Mouse_HID_Task(void)
}
\r
\r
puts_P(PSTR("Mouse Enumerated.\r\n"));
\r
}
\r
\r
puts_P(PSTR("Mouse Enumerated.\r\n"));
\r
-
\r
- USB_HostState = HOST_STATE_
Ready
;
\r
+
\r
+ USB_HostState = HOST_STATE_
Configured
;
\r
break;
\r
break;
\r
- case HOST_STATE_
Ready
:
\r
+ case HOST_STATE_
Configured
:
\r
/* Select and unfreeze mouse data pipe */
\r
Pipe_SelectPipe(MOUSE_DATAPIPE);
\r
Pipe_Unfreeze();
\r
/* Select and unfreeze mouse data pipe */
\r
Pipe_SelectPipe(MOUSE_DATAPIPE);
\r
Pipe_Unfreeze();
\r