Seperated out parts of the PrinterHost incomplete demo into a seperate Lib subdirectory.
[pub/USBasp.git] / Demos / Host / Incomplete / PrinterHost / PrinterHost.h
index e164956..191cd7f 100644 (file)
@@ -39,6 +39,7 @@
                #include <stdio.h>\r
 \r
                #include "ConfigDescriptor.h"\r
+               #include "Lib/PrinterCommands.h"\r
 \r
                #include <LUFA/Version.h>
                #include <LUFA/Drivers/Misc/TerminalCodes.h>\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
-\r
-               #define PROTOCOL_UNIDIRECTIONAL      0x01\r
-               #define PROTOCOL_BIDIRECTIONAL       0x02\r
-               #define PROTOCOL_IEEE1284            0x03\r
-               \r
-               #define GET_DEVICE_ID                0\r
-\r
-       /* Type Defines: */\r
-               typedef struct\r
-               {\r
-                       uint16_t Length;\r
-                       uint8_t  String[128];\r
-               } Device_ID_String_t;\r
-\r
+       \r
        /* External Variables: */\r
                extern uint8_t PrinterProtocol;\r
        \r
@@ -86,6 +74,4 @@
 \r
                void USB_Printer_Host(void);\r
 \r
-               bool GetDeviceID(void);\r
-\r
 #endif\r