X-Git-Url: http://git.linex4red.de/pub/USBasp.git/blobdiff_plain/e0af6014a746b1ef0707d388a58bcf77b9ea47f1..5d8cdd9bea07acd276b260b34bea299a45a9088a:/Demos/Host/Incomplete/PrinterHost/PrinterHost.h diff --git a/Demos/Host/Incomplete/PrinterHost/PrinterHost.h b/Demos/Host/Incomplete/PrinterHost/PrinterHost.h index e1649563a..5851349e4 100644 --- a/Demos/Host/Incomplete/PrinterHost/PrinterHost.h +++ b/Demos/Host/Incomplete/PrinterHost/PrinterHost.h @@ -37,8 +37,10 @@ #include #include #include + #include #include "ConfigDescriptor.h" + #include "Lib/PrinterCommands.h" #include #include @@ -58,22 +60,9 @@ /** LED mask for the library LED driver, to indicate that an error has occurred in the USB interface. */ #define LEDMASK_USB_ERROR (LEDS_LED1 | LEDS_LED3) - - #define PROTOCOL_UNIDIRECTIONAL 0x01 - #define PROTOCOL_BIDIRECTIONAL 0x02 - #define PROTOCOL_IEEE1284 0x03 - - #define GET_DEVICE_ID 0 - - /* Type Defines: */ - typedef struct - { - uint16_t Length; - uint8_t String[128]; - } Device_ID_String_t; - - /* External Variables: */ - extern uint8_t PrinterProtocol; + + /** LED mask for the library LED driver, to indicate that the USB interface is busy. */ + #define LEDMASK_USB_BUSY (LEDS_LED2) /* Function Prototypes: */ void EVENT_USB_DeviceAttached(void); @@ -86,6 +75,4 @@ void USB_Printer_Host(void); - bool GetDeviceID(void); - #endif