2023-05-28 17:55:09 +00:00
|
|
|
/*
|
|
|
|
* cdc_device_definition.c
|
|
|
|
*
|
|
|
|
* Created on: Dec 26, 2011
|
|
|
|
* Author: Doug
|
|
|
|
*
|
2023-06-05 04:56:00 +00:00
|
|
|
* Copyright (C) 2011-2023 Doug Brown
|
2023-05-28 17:55:09 +00:00
|
|
|
*
|
2023-06-25 01:55:11 +00:00
|
|
|
* This program is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
|
|
* (at your option) any later version.
|
2023-05-28 17:55:09 +00:00
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
2023-06-25 01:55:11 +00:00
|
|
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
2023-05-28 17:55:09 +00:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "LUFA/Drivers/USB/USB.h"
|
|
|
|
#include "Descriptors.h"
|
|
|
|
|
|
|
|
/// Configuration info for the USB CDC serial interface
|
|
|
|
USB_ClassInfo_CDC_Device_t VirtualSerial_CDC_Interface =
|
|
|
|
{
|
|
|
|
.Config = {
|
|
|
|
.ControlInterfaceNumber = 0,
|
|
|
|
|
|
|
|
.DataINEndpointNumber = CDC_TX_EPNUM,
|
|
|
|
.DataINEndpointSize = CDC_TXRX_EPSIZE,
|
|
|
|
.DataINEndpointDoubleBank = true,
|
|
|
|
|
|
|
|
.DataOUTEndpointNumber = CDC_RX_EPNUM,
|
|
|
|
.DataOUTEndpointSize = CDC_TXRX_EPSIZE,
|
|
|
|
.DataOUTEndpointDoubleBank = true,
|
|
|
|
|
|
|
|
.NotificationEndpointNumber = CDC_NOTIFICATION_EPNUM,
|
|
|
|
.NotificationEndpointSize = CDC_NOTIFICATION_EPSIZE,
|
|
|
|
.NotificationEndpointDoubleBank = false,
|
|
|
|
},
|
|
|
|
};
|