X-Git-Url: http://git.linex4red.de/pub/USBasp.git/blobdiff_plain/b9b03aadb219d06fbad9d110e508db93e45461af..c75f8bf2236bc69511d0ff0bc79bfaf1f62e3bfd:/Demos/Device/ClassDriver/RNDISEthernet/RNDISEthernet.c diff --git a/Demos/Device/ClassDriver/RNDISEthernet/RNDISEthernet.c b/Demos/Device/ClassDriver/RNDISEthernet/RNDISEthernet.c index 7c857197f..3c9fddfd4 100644 --- a/Demos/Device/ClassDriver/RNDISEthernet/RNDISEthernet.c +++ b/Demos/Device/ClassDriver/RNDISEthernet/RNDISEthernet.c @@ -82,7 +82,7 @@ int main(void) TCP_TCPTask(&Ethernet_RNDIS_Interface); - USB_RNDIS_USBTask(&Ethernet_RNDIS_Interface); + RNDIS_Device_USBTask(&Ethernet_RNDIS_Interface); USB_USBTask(); } } @@ -106,13 +106,13 @@ void SetupHardware(void) /** Event handler for the library USB Connection event. */ void EVENT_USB_Connect(void) { - LEDs_SetAllLEDs(LEDMASK_USB_ENUMERATING); + LEDs_SetAllLEDs(LEDMASK_USB_ENUMERATING); } /** Event handler for the library USB Disconnection event. */ void EVENT_USB_Disconnect(void) { - LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY); + LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY); } /** Event handler for the library USB Configuration Changed event. */ @@ -120,12 +120,12 @@ void EVENT_USB_ConfigurationChanged(void) { LEDs_SetAllLEDs(LEDMASK_USB_READY); - if (!(USB_RNDIS_ConfigureEndpoints(&Ethernet_RNDIS_Interface))) + if (!(RNDIS_Device_ConfigureEndpoints(&Ethernet_RNDIS_Interface))) LEDs_SetAllLEDs(LEDMASK_USB_ERROR); } /** Event handler for the library USB Unhandled Control Packet event. */ void EVENT_USB_UnhandledControlPacket(void) { - USB_RNDIS_ProcessControlPacket(&Ethernet_RNDIS_Interface); + RNDIS_Device_ProcessControlPacket(&Ethernet_RNDIS_Interface); }