diff options
author | Dean Camera <dean@fourwalledcubicle.com> | 2009-07-28 13:01:44 +0000 |
---|---|---|
committer | Dean Camera <dean@fourwalledcubicle.com> | 2009-07-28 13:01:44 +0000 |
commit | c1be3073939c71d17c92fcbce4e1690d0a1443f0 (patch) | |
tree | 66215e49220bbb4fc1d966b96e40a4ea67416767 /LUFA/Drivers/USB/HighLevel/USBTask.c | |
parent | 23c1653efe58d436504c01438133c1ef7b3f8fbc (diff) | |
download | lufa-c1be3073939c71d17c92fcbce4e1690d0a1443f0.tar.gz lufa-c1be3073939c71d17c92fcbce4e1690d0a1443f0.tar.bz2 lufa-c1be3073939c71d17c92fcbce4e1690d0a1443f0.zip |
Added HOST_STATE_AS_GPIOR1 and DEVICE_STATE_AS_GPIOR0 compile time options, the latter of which is used in the bootloaders, to reduce code size.
Diffstat (limited to 'LUFA/Drivers/USB/HighLevel/USBTask.c')
-rw-r--r-- | LUFA/Drivers/USB/HighLevel/USBTask.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/LUFA/Drivers/USB/HighLevel/USBTask.c b/LUFA/Drivers/USB/HighLevel/USBTask.c index 500a697bc..31cedacb8 100644 --- a/LUFA/Drivers/USB/HighLevel/USBTask.c +++ b/LUFA/Drivers/USB/HighLevel/USBTask.c @@ -36,11 +36,11 @@ volatile bool USB_IsInitialized;
USB_Request_Header_t USB_ControlRequest;
-#if defined(USB_CAN_BE_HOST)
+#if defined(USB_CAN_BE_HOST) && !defined(HOST_STATE_AS_GPIOR1)
volatile uint8_t USB_HostState;
#endif
-#if defined(USB_CAN_BE_DEVICE)
+#if defined(USB_CAN_BE_DEVICE) && !defined(DEVICE_STATE_AS_GPIOR0)
volatile uint8_t USB_DeviceState;
#endif
|