/*----------------------------------------------------------------------------
* U S B - K e r n e l
*----------------------------------------------------------------------------
* Name: usbcfg.h
* Purpose: USB Custom Configuration
* Version: V1.20
*----------------------------------------------------------------------------
* This software is supplied "AS IS" without any warranties, express,
* implied or statutory, including but not limited to the implied
* warranties of fitness for purpose, satisfactory quality and
* noninfringement. Keil extends you a royalty-free right to reproduce
* and distribute executable files created using this software for use
* on NXP Semiconductors LPC microcontroller devices only. Nothing else
* gives you the right to use this software.
*
* Copyright (c) 2009 Keil - An ARM Company. All rights reserved.
*----------------------------------------------------------------------------
* History:
* V1.20 Added vendor specific support
* V1.00 Initial Version
*---------------------------------------------------------------------------*/
#ifndef __USBCFG_H__
#define __USBCFG_H__
//*** <<< Use Configuration Wizard in Context Menu >>> ***
/*
// USB Configuration
// USB Power
// Default Power Setting
// <0=> Bus-powered
// <1=> Self-powered
// Max Number of Interfaces <1-256>
// Max Number of Endpoints <1-32>
// Max Endpoint 0 Packet Size
// <8=> 8 Bytes <16=> 16 Bytes <32=> 32 Bytes <64=> 64 Bytes
// DMA Transfer
// Use DMA for selected Endpoints
// Endpoint 0 Out
// Endpoint 0 In
// Endpoint 1 Out
// Endpoint 1 In
// Endpoint 2 Out
// Endpoint 2 In
// Endpoint 3 Out
// Endpoint 3 In
// Endpoint 4 Out
// Endpoint 4 In
//
//
*/
#define USB_POWER 0
#define USB_IF_NUM 1
#define USB_LOGIC_EP_NUM 5
#define USB_EP_NUM 10
#define USB_MAX_PACKET0 64
/*
// USB Event Handlers
// Device Events
// Power Event
// Reset Event
// Suspend Event
// Resume Event
// Remote Wakeup Event
// Start of Frame Event
// Error Event
//
// Endpoint Events
// Endpoint 0 Event
// Endpoint 1 Event
// Endpoint 2 Event
// Endpoint 3 Event
// Endpoint 4 Event
// Endpoint 5 Event
// Endpoint 6 Event
// Endpoint 7 Event
// Endpoint 8 Event
// Endpoint 9 Event
// Endpoint 10 Event
// Endpoint 11 Event
// Endpoint 12 Event
// Endpoint 13 Event
// Endpoint 14 Event
// Endpoint 15 Event
//
// USB Core Events
// Set Configuration Event
// Set Interface Event
// Set/Clear Feature Event
//
//
*/
#define USB_POWER_EVENT 0
#define USB_RESET_EVENT 1
#define USB_SUSPEND_EVENT 1
#define USB_RESUME_EVENT 1
#define USB_WAKEUP_EVENT 0
#define USB_SOF_EVENT 0
#define USB_ERROR_EVENT 0
#define USB_EP_EVENT 0x000f
#define USB_CONFIGURE_EVENT 1
#define USB_INTERFACE_EVENT 0
#define USB_FEATURE_EVENT 0
/*
// USB Class Support
// enables USB Class specific Requests
// Human Interface Device (HID)
// Interface Number <0-255>
//
// Mass Storage
// Interface Number <0-255>
//
// Audio Device
// Control Interface Number <0-255>
// Streaming Interface 1 Number <0-255>
// Streaming Interface 2 Number <0-255>
//
// Communication Device
// Control Interface Number <0-255>
// Bulk Interface Number <0-255>
// Max Communication Device Buffer Size
// <8=> 8 Bytes <16=> 16 Bytes <32=> 32 Bytes <64=> 64 Bytes
//
//
*/
#define USB_CLASS 1
#define USB_HID 0
#define USB_HID_IF_NUM 0
#define USB_MSC 1
#define USB_MSC_IF_NUM 0
#define USB_AUDIO 0
#define USB_ADC_CIF_NUM 0
#define USB_ADC_SIF1_NUM 1
#define USB_ADC_SIF2_NUM 2
#define USB_CDC 1
#define USB_CDC_CIF_NUM 1
#define USB_CDC_DIF_NUM 2
#define USB_CDC_BUFSIZE 64
/*
// USB Vendor Support
// enables USB Vendor specific Requests
//
*/
#define USB_VENDOR 0
#endif /* __USBCFG_H__ */