diff options
author | Christian Pointner <equinox@spreadspace.org> | 2013-10-06 19:58:16 +0000 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2013-10-06 19:58:16 +0000 |
commit | 9d59879f16e761345c0ea4970904c3403be912c4 (patch) | |
tree | f48dc74707fe3b89e20007562f721a371a216bdd | |
parent | finally fixed usbio for smaller usb-avrs (diff) |
fixed anyio for small avrs
git-svn-id: https://svn.spreadspace.org/avr/trunk@233 aa12f405-d877-488e-9caf-2d797e2a1cc7
-rw-r--r-- | lib/anyio.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/anyio.c b/lib/anyio.c index aaa5f47..6322feb 100644 --- a/lib/anyio.c +++ b/lib/anyio.c @@ -83,10 +83,12 @@ void anyio_init(const uint32_t baudrate, const uint8_t doublespeed) void anyio_task(void) { +#if defined(USB_SERIES_4_AVR) || defined(USB_SERIES_6_AVR) || defined(USB_SERIES_7_AVR) if(USB_DeviceState == DEVICE_STATE_Unattached && USB_VBUS_GetStatus()) { USB_Disable(); USB_Init(); } +#endif CDC_Device_USBTask(&VirtualSerial_CDC_Interface); USB_USBTask(); |