projects
/
pub
/
USBasp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added new USB_DeviceState variable to keep track of the current Device mode USB state.
[pub/USBasp.git]
/
Demos
/
Host
/
LowLevel
/
CDCHost
/
CDCHost.c
diff --git
a/Demos/Host/LowLevel/CDCHost/CDCHost.c
b/Demos/Host/LowLevel/CDCHost/CDCHost.c
index
a3cde78
..
e20fa2c
100644
(file)
--- a/
Demos/Host/LowLevel/CDCHost/CDCHost.c
+++ b/
Demos/Host/LowLevel/CDCHost/CDCHost.c
@@
-164,15
+164,12
@@
void CDC_Host_Task(void)
USB_HostState = HOST_STATE_WaitForDeviceRemoval;
\r
break;
\r
}
\r
USB_HostState = HOST_STATE_WaitForDeviceRemoval;
\r
break;
\r
}
\r
-
\r
+
\r
+ puts_P(PSTR("CDC Device Enumerated.\r\n"));
\r
+
\r
USB_HostState = HOST_STATE_Configured;
\r
break;
\r
case HOST_STATE_Configured:
\r
USB_HostState = HOST_STATE_Configured;
\r
break;
\r
case HOST_STATE_Configured:
\r
- puts_P(PSTR("CDC Device Enumerated.\r\n"));
\r
-
\r
- USB_HostState = HOST_STATE_Ready;
\r
- break;
\r
- case HOST_STATE_Ready:
\r
/* Select and the data IN pipe */
\r
Pipe_SelectPipe(CDC_DATAPIPE_IN);
\r
Pipe_Unfreeze();
\r
/* Select and the data IN pipe */
\r
Pipe_SelectPipe(CDC_DATAPIPE_IN);
\r
Pipe_Unfreeze();
\r