summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2015-06-29 23:51:38 +0200
committerChristian Pointner <equinox@spreadspace.org>2015-06-29 23:51:38 +0200
commitb0dd7cafd5e0675b40da5d3ddd38a03c622443d8 (patch)
tree8866f69a5416ba1d81b3209cc18d94dd236fff0e /lib
parentported usb-spi example to new lufa (diff)
ported anyio lib and any-led to new lufa
Diffstat (limited to 'lib')
-rw-r--r--lib/anyio.c38
1 files changed, 22 insertions, 16 deletions
diff --git a/lib/anyio.c b/lib/anyio.c
index 2aae54e..1ccaf3a 100644
--- a/lib/anyio.c
+++ b/lib/anyio.c
@@ -2,8 +2,8 @@
* spreadspace avr utils
*
*
- * Copyright (C) 2013-2014 Christian Pointner <equinox@spreadspace.org>
- * Othmar Gsenger <otti@wirdorange.org>
+ * Copyright (C) 2013-2015 Christian Pointner <equinox@spreadspace.org>
+ * 2013-2014 Othmar Gsenger <otti@wirdorange.org>
*
* This file is part of spreadspace avr utils.
*
@@ -31,7 +31,7 @@
/*
LUFA Library
- Copyright (C) Dean Camera, 2012.
+ Copyright (C) Dean Camera, 2014.
dean [at] fourwalledcubicle [dot] com
www.lufa-lib.org
@@ -41,19 +41,25 @@ USB_ClassInfo_CDC_Device_t VirtualSerial_CDC_Interface =
{
.Config =
{
- .ControlInterfaceNumber = 0,
-
- .DataINEndpointNumber = CDC_TX_EPNUM,
- .DataINEndpointSize = CDC_TXRX_EPSIZE,
- .DataINEndpointDoubleBank = false,
-
- .DataOUTEndpointNumber = CDC_RX_EPNUM,
- .DataOUTEndpointSize = CDC_TXRX_EPSIZE,
- .DataOUTEndpointDoubleBank = false,
-
- .NotificationEndpointNumber = CDC_NOTIFICATION_EPNUM,
- .NotificationEndpointSize = CDC_NOTIFICATION_EPSIZE,
- .NotificationEndpointDoubleBank = false,
+ .ControlInterfaceNumber = INTERFACE_ID_CDC_CCI,
+ .DataINEndpoint =
+ {
+ .Address = CDC_TX_EPADDR,
+ .Size = CDC_TXRX_EPSIZE,
+ .Banks = 1,
+ },
+ .DataOUTEndpoint =
+ {
+ .Address = CDC_RX_EPADDR,
+ .Size = CDC_TXRX_EPSIZE,
+ .Banks = 1,
+ },
+ .NotificationEndpoint =
+ {
+ .Address = CDC_NOTIFICATION_EPADDR,
+ .Size = CDC_NOTIFICATION_EPSIZE,
+ .Banks = 1,
+ },
},
};