summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2015-06-29 21:47:56 +0200
committerChristian Pointner <equinox@spreadspace.org>2015-06-29 21:47:56 +0200
commit7d2adba0e7674a5a971df179079445dc83e550e8 (patch)
tree529b4ab06a9a59c6e17448e1246d3f043e5dacc8 /lib
parentported usb-serial to new lufa version (diff)
ported usbio lib and usb-led
Diffstat (limited to 'lib')
-rw-r--r--lib/usbio.c32
1 files changed, 19 insertions, 13 deletions
diff --git a/lib/usbio.c b/lib/usbio.c
index 4a371c9..7f6eb72 100644
--- a/lib/usbio.c
+++ b/lib/usbio.c
@@ -40,19 +40,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,
+ },
},
};