summaryrefslogtreecommitdiff
path: root/lib/anyio.c
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2013-10-06 19:58:16 +0000
committerChristian Pointner <equinox@spreadspace.org>2013-10-06 19:58:16 +0000
commit9d59879f16e761345c0ea4970904c3403be912c4 (patch)
treef48dc74707fe3b89e20007562f721a371a216bdd /lib/anyio.c
parentfinally 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
Diffstat (limited to 'lib/anyio.c')
-rw-r--r--lib/anyio.c2
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();