From b0dd7cafd5e0675b40da5d3ddd38a03c622443d8 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Mon, 29 Jun 2015 23:51:38 +0200 Subject: ported anyio lib and any-led to new lufa --- lib/anyio.c | 38 ++++++++++++++++++++++---------------- 1 file changed, 22 insertions(+), 16 deletions(-) (limited to 'lib/anyio.c') 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 - * Othmar Gsenger + * Copyright (C) 2013-2015 Christian Pointner + * 2013-2014 Othmar Gsenger * * 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, + }, }, }; -- cgit v1.2.3