projects
/
pub
/
USBasp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add new Audio Class Driver Host demos.
[pub/USBasp.git]
/
Demos
/
Host
/
LowLevel
/
MouseHost
/
MouseHost.c
diff --git
a/Demos/Host/LowLevel/MouseHost/MouseHost.c
b/Demos/Host/LowLevel/MouseHost/MouseHost.c
index
b62e72c
..
c2c900a
100644
(file)
--- a/
Demos/Host/LowLevel/MouseHost/MouseHost.c
+++ b/
Demos/Host/LowLevel/MouseHost/MouseHost.c
@@
-103,7
+103,7
@@
void EVENT_USB_Host_DeviceEnumerationComplete(void)
/** Event handler for the USB_HostError event. This indicates that a hardware error occurred while in host mode. */
void EVENT_USB_Host_HostError(const uint8_t ErrorCode)
{
/** Event handler for the USB_HostError event. This indicates that a hardware error occurred while in host mode. */
void EVENT_USB_Host_HostError(const uint8_t ErrorCode)
{
- USB_
ShutDown
();
+ USB_
Disable
();
printf_P(PSTR(ESC_FG_RED "Host Mode Error\r\n"
" -- Error Code %d\r\n" ESC_FG_WHITE), ErrorCode);
printf_P(PSTR(ESC_FG_RED "Host Mode Error\r\n"
" -- Error Code %d\r\n" ESC_FG_WHITE), ErrorCode);
@@
-137,7
+137,7
@@
void ReadNextReport(void)
/* Select mouse data pipe */
Pipe_SelectPipe(MOUSE_DATA_IN_PIPE);
/* Select mouse data pipe */
Pipe_SelectPipe(MOUSE_DATA_IN_PIPE);
- /* Unfreeze
keyboard
data pipe */
+ /* Unfreeze
mouse
data pipe */
Pipe_Unfreeze();
/* Check to see if a packet has been received */
Pipe_Unfreeze();
/* Check to see if a packet has been received */