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.

This commit is contained in:
Dean Camera 2009-07-28 13:01:44 +00:00
parent 23c1653efe
commit c1be307393
7 changed files with 68 additions and 34 deletions

View file

@ -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