projects
/
pub
/
lufa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed CDCHost not clearing configured endpoints and resetting configured endpoints...
[pub/lufa.git]
/
Demos
/
Device
/
RNDISEthernet
/
RNDISEthernet.c
diff --git
a/Demos/Device/RNDISEthernet/RNDISEthernet.c
b/Demos/Device/RNDISEthernet/RNDISEthernet.c
index
96fef39
..
fd88ecf
100644
(file)
--- a/
Demos/Device/RNDISEthernet/RNDISEthernet.c
+++ b/
Demos/Device/RNDISEthernet/RNDISEthernet.c
@@
-113,10
+113,6
@@
EVENT_HANDLER(USB_Disconnect)
EVENT_HANDLER(USB_ConfigurationChanged)
\r
{
\r
/* Setup CDC Notification, Rx and Tx Endpoints */
\r
EVENT_HANDLER(USB_ConfigurationChanged)
\r
{
\r
/* Setup CDC Notification, Rx and Tx Endpoints */
\r
- Endpoint_ConfigureEndpoint(CDC_NOTIFICATION_EPNUM, EP_TYPE_INTERRUPT,
\r
- ENDPOINT_DIR_IN, CDC_NOTIFICATION_EPSIZE,
\r
- ENDPOINT_BANK_SINGLE);
\r
-
\r
Endpoint_ConfigureEndpoint(CDC_TX_EPNUM, EP_TYPE_BULK,
\r
ENDPOINT_DIR_IN, CDC_TXRX_EPSIZE,
\r
ENDPOINT_BANK_SINGLE);
\r
Endpoint_ConfigureEndpoint(CDC_TX_EPNUM, EP_TYPE_BULK,
\r
ENDPOINT_DIR_IN, CDC_TXRX_EPSIZE,
\r
ENDPOINT_BANK_SINGLE);
\r
@@
-125,6
+121,10
@@
EVENT_HANDLER(USB_ConfigurationChanged)
ENDPOINT_DIR_OUT, CDC_TXRX_EPSIZE,
\r
ENDPOINT_BANK_SINGLE);
\r
\r
ENDPOINT_DIR_OUT, CDC_TXRX_EPSIZE,
\r
ENDPOINT_BANK_SINGLE);
\r
\r
+ Endpoint_ConfigureEndpoint(CDC_NOTIFICATION_EPNUM, EP_TYPE_INTERRUPT,
\r
+ ENDPOINT_DIR_IN, CDC_NOTIFICATION_EPSIZE,
\r
+ ENDPOINT_BANK_SINGLE);
\r
+
\r
/* Indicate USB connected and ready */
\r
UpdateStatus(Status_USBReady);
\r
\r
/* Indicate USB connected and ready */
\r
UpdateStatus(Status_USBReady);
\r
\r