diff options
author | Dean Camera <dean@fourwalledcubicle.com> | 2009-07-13 04:46:52 +0000 |
---|---|---|
committer | Dean Camera <dean@fourwalledcubicle.com> | 2009-07-13 04:46:52 +0000 |
commit | a54ed0085b29f81946f3652bd412103292da7589 (patch) | |
tree | b7da8d52d572986e46bc913751e681dc70185f5c /Demos/Host/Incomplete/PrinterHost/PrinterHost.h | |
parent | 23f3c3deee8bd153d59f2ac4e659c71ee75915f7 (diff) | |
download | lufa-a54ed0085b29f81946f3652bd412103292da7589.tar.gz lufa-a54ed0085b29f81946f3652bd412103292da7589.tar.bz2 lufa-a54ed0085b29f81946f3652bd412103292da7589.zip |
Seperated out parts of the PrinterHost incomplete demo into a seperate Lib subdirectory.
Fixed Host mode to Device mode UID change not causing a USB Disconnect event when a device was connected.
Diffstat (limited to 'Demos/Host/Incomplete/PrinterHost/PrinterHost.h')
-rw-r--r-- | Demos/Host/Incomplete/PrinterHost/PrinterHost.h | 18 |
1 files changed, 2 insertions, 16 deletions
diff --git a/Demos/Host/Incomplete/PrinterHost/PrinterHost.h b/Demos/Host/Incomplete/PrinterHost/PrinterHost.h index e1649563a..191cd7f12 100644 --- a/Demos/Host/Incomplete/PrinterHost/PrinterHost.h +++ b/Demos/Host/Incomplete/PrinterHost/PrinterHost.h @@ -39,6 +39,7 @@ #include <stdio.h>
#include "ConfigDescriptor.h"
+ #include "Lib/PrinterCommands.h"
#include <LUFA/Version.h> #include <LUFA/Drivers/Misc/TerminalCodes.h>
@@ -58,20 +59,7 @@ /** 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;
@@ -86,6 +74,4 @@ void USB_Printer_Host(void);
- bool GetDeviceID(void);
-
#endif
|