X-Git-Url: http://git.asbjorn.biz/?p=rapper.git;a=blobdiff_plain;f=new_cmsis%2Fusb%2Fusbcfg.h;fp=new_cmsis%2Fusb%2Fusbcfg.h;h=b8610da48edb69507ab16ae80e97be470c85c6ba;hp=0000000000000000000000000000000000000000;hb=0163b16211dc58d6619b923b370be8491fb984cb;hpb=ed7a4dbc9f9d17923417de5ebc515e76e979c6f9
diff --git a/new_cmsis/usb/usbcfg.h b/new_cmsis/usb/usbcfg.h
new file mode 100755
index 0000000..b8610da
--- /dev/null
+++ b/new_cmsis/usb/usbcfg.h
@@ -0,0 +1,181 @@
+/*----------------------------------------------------------------------------
+ * 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 family 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
+// 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 8
+#define USB_DMA 0
+#define USB_DMA_EP 0x00000000
+
+
+/*
+// 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 0
+#define USB_ERROR_EVENT 0
+#define USB_EP_EVENT 0x0007
+#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 0
+#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 0
+#define USB_CDC_DIF_NUM 1
+#define USB_CDC_BUFSIZE 64
+
+/*
+// USB Vendor Support
+// enables USB Vendor specific Requests
+//
+*/
+#define USB_VENDOR 0
+
+
+#endif /* __USBCFG_H__ */