Device mode class driver callbacks are now fired before the control request status...
[pub/USBasp.git] / Projects / Webserver / Webserver.h
index a9621e3..4fb5b37 100644 (file)
@@ -41,6 +41,7 @@
                #include <avr/wdt.h>\r
                #include <avr/pgmspace.h>\r
                #include <avr/power.h>\r
+               #include <avr/interrupt.h>\r
 \r
                #include <LUFA/Version.h>\r
                #include <LUFA/Drivers/Board/LEDs.h>\r
                \r
        /* Macros: */\r
                /** LED mask for the library LED driver, to indicate that the USB interface is not ready. */\r
-               #define LEDMASK_USB_NOTREADY      LEDS_LED1\r
+               #define LEDMASK_USB_NOTREADY          LEDS_LED1\r
 \r
                /** LED mask for the library LED driver, to indicate that the USB interface is enumerating. */\r
-               #define LEDMASK_USB_ENUMERATING  (LEDS_LED2 | LEDS_LED3)\r
+               #define LEDMASK_USB_ENUMERATING      (LEDS_LED1 | LEDS_LED2)\r
 \r
                /** LED mask for the library LED driver, to indicate that the USB interface is ready. */\r
-               #define LEDMASK_USB_READY        (LEDS_LED2 | LEDS_LED4)\r
+               #define LEDMASK_USB_READY             LEDS_LED2\r
 \r
                /** LED mask for the library LED driver, to indicate that an error has occurred in the USB interface. */\r
-               #define LEDMASK_USB_ERROR        (LEDS_LED1 | LEDS_LED3)\r
+               #define LEDMASK_USB_ERROR            (LEDS_LED1 | LEDS_LED3)\r
                \r
                /** LED mask for the library LED driver, to indicate that the USB interface is busy. */\r
-               #define LEDMASK_USB_BUSY          LEDS_LED2\r
+               #define LEDMASK_USB_BUSY             (LEDS_LED1 | LEDS_LED3 | LEDS_LED4)\r
+\r
+               /** LED mask for the uIP stack idling with no IP configuration */\r
+               #define LEDMASK_UIP_READY_NOCONFIG    LEDS_LED3\r
+\r
+               /** LED mask for the uIP stack idling with a valid IP configuration */\r
+               #define LEDMASK_UIP_READY_CONFIG      LEDS_LED4\r
 \r
        /* Function Prototypes: */\r
                void SetupHardware(void);\r