Relocate USBInterrupt.c/.h from the HighLevel USB driver directory to the LowLevel...
[pub/USBasp.git] / Demos / Host / ClassDriver / RNDISEthernetHost / RNDISEthernetHost.c
index 148fdf2..f5c3e42 100644 (file)
@@ -36,7 +36,7 @@
  \r
 #include "RNDISEthernetHost.h"\r
 \r
-/** Buffer to hold incomming and outgoing Ethernet packets. */\r
+/** Buffer to hold incoming and outgoing Ethernet packets. */\r
 uint8_t PacketBuffer[1024];\r
 \r
 /** LUFA RNDIS Class driver interface configuration and state information. This structure is\r
@@ -70,6 +70,7 @@ int main(void)
        puts_P(PSTR(ESC_FG_CYAN "RNDIS Host Demo running.\r\n" ESC_FG_WHITE));\r
 \r
        LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY);\r
+       sei();\r
 \r
        for (;;)\r
        {\r
@@ -143,10 +144,11 @@ int main(void)
                                printf("Device Vendor ID: 0x%08lX\r\n", VendorID);\r
 \r
                                printf("RNDIS Device Enumerated.\r\n");\r
+                               LEDs_SetAllLEDs(LEDMASK_USB_READY);\r
                                USB_HostState = HOST_STATE_Configured;\r
                                break;\r
                        case HOST_STATE_Configured:\r
-                               PrintIncommingPackets();\r
+                               PrintIncomingPackets();\r
                        \r
                                break;\r
                }\r
@@ -156,8 +158,8 @@ int main(void)
        }\r
 }\r
 \r
-/** Prints incomming packets from the attached RNDIS device to the serial port. */\r
-void PrintIncommingPackets(void)\r
+/** Prints incoming packets from the attached RNDIS device to the serial port. */\r
+void PrintIncomingPackets(void)\r
 {\r
        if (RNDIS_Host_IsPacketReceived(&Ethernet_RNDIS_Interface))\r
        {\r