/*----------------------------------------------------------------------------
* U S B - K e r n e l
*----------------------------------------------------------------------------
* Name: USBCFG.H
* Purpose: USB Custom Configuration
* Version: V1.10
*----------------------------------------------------------------------------
* 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 Philips LPC2xxx microcontroller devices only. Nothing else gives
* you the right to use this software.
*
* Copyright (c) 2005-2006 Keil Software.
*---------------------------------------------------------------------------*/
#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
// Endpoint 5 Out
// Endpoint 5 In
// Endpoint 6 Out
// Endpoint 6 In
// Endpoint 7 Out
// Endpoint 7 In
// Endpoint 8 Out
// Endpoint 8 In
// Endpoint 9 Out
// Endpoint 9 In
// Endpoint 10 Out
// Endpoint 10 In
// Endpoint 11 Out
// Endpoint 11 In
// Endpoint 12 Out
// Endpoint 12 In
// Endpoint 13 Out
// Endpoint 13 In
// Endpoint 14 Out
// Endpoint 14 In
// Endpoint 15 Out
// Endpoint 15 In
//
//
*/
#define USB_POWER 0
#define USB_IF_NUM 4
#define USB_EP_NUM 32
#define USB_MAX_PACKET0 64
#define USB_DMA 0
#define USB_DMA_EP 0x00000040
/*
// 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 0
#define USB_RESUME_EVENT 0
#define USB_WAKEUP_EVENT 0
#define USB_SOF_EVENT 1
#define USB_ERROR_EVENT 0
#define USB_EP_EVENT 0x0009
#define USB_CONFIGURE_EVENT 0
#define USB_INTERFACE_EVENT 0
#define USB_FEATURE_EVENT 0
/*
// USB Class Support
// 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>
//
//
*/
#define USB_CLASS 1
#define USB_HID 0
#define USB_HID_IF_NUM 0
#define USB_MSC 0
#define USB_MSC_IF_NUM 0
#define USB_AUDIO 1
#define USB_ADC_CIF_NUM 0
#define USB_ADC_SIF1_NUM 1
#define USB_ADC_SIF2_NUM 2
#endif /* __USBCFG_H__ */