Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
usbcfg_SAM3U.h
00001 /** 00002 * @file usbcfg_SAM3U.h 00003 * @brief 00004 * 00005 * DAPLink Interface Firmware 00006 * Copyright (c) 2009-2016, ARM Limited, All Rights Reserved 00007 * SPDX-License-Identifier: Apache-2.0 00008 * 00009 * Licensed under the Apache License, Version 2.0 (the "License"); you may 00010 * not use this file except in compliance with the License. 00011 * You may obtain a copy of the License at 00012 * 00013 * http://www.apache.org/licenses/LICENSE-2.0 00014 * 00015 * Unless required by applicable law or agreed to in writing, software 00016 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 00017 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00018 * See the License for the specific language governing permissions and 00019 * limitations under the License. 00020 */ 00021 00022 #ifndef __USBCFG_H_SAM3U 00023 #define __USBCFG_H_SAM3U 00024 00025 00026 //*** <<< Use Configuration Wizard in Context Menu >>> *** 00027 00028 00029 /* 00030 // <h> USB Configuration 00031 // <o0> USB Power 00032 // <i> Default Power Setting 00033 // <0=> Bus-powered 00034 // <1=> Self-powered 00035 // <o1> Max Number of Interfaces <1-256> 00036 // <o2> Max Number of Endpoints <1-32> 00037 // <o3> Max Endpoint 0 Packet Size 00038 // <8=> 8 Bytes <16=> 16 Bytes <32=> 32 Bytes <64=> 64 Bytes 00039 // </h> 00040 */ 00041 00042 #define USB_POWER 1 00043 #define USB_IF_NUM 1 00044 #define USB_EP_NUM 3 00045 #define USB_MAX_PACKET0 64 00046 00047 00048 /* 00049 // <h> USB Event Handlers 00050 // <h> Device Events 00051 // <o0.0> Power Event 00052 // <o1.0> Reset Event 00053 // <o2.0> Suspend Event 00054 // <o3.0> Resume Event 00055 // <o4.0> Remote Wakeup Event 00056 // <o5.0> Start of Frame Event 00057 // <o6.0> Error Event 00058 // </h> 00059 // <h> Endpoint Events 00060 // <o7.0> Endpoint 0 Event 00061 // <o7.1> Endpoint 1 Event 00062 // <o7.2> Endpoint 2 Event 00063 // <o7.3> Endpoint 3 Event 00064 // <o7.4> Endpoint 4 Event 00065 // <o7.5> Endpoint 5 Event 00066 // <o7.6> Endpoint 6 Event 00067 00068 // </h> 00069 // <h> USB Core Events 00070 // <o8.0> Set Configuration Event 00071 // <o9.0> Set Interface Event 00072 // <o10.0> Set/Clear Feature Event 00073 // </h> 00074 // </h> 00075 */ 00076 00077 #define USB_POWER_EVENT 0 00078 #define USB_RESET_EVENT 1 00079 #define USB_SUSPEND_EVENT 1 00080 #define USB_RESUME_EVENT 1 00081 #define USB_WAKEUP_EVENT 0 00082 #define USB_SOF_EVENT 0 00083 #define USB_ERROR_EVENT 0 00084 #define USB_EP_EVENT 0x0007 00085 #define USB_CONFIGURE_EVENT 1 00086 #define USB_INTERFACE_EVENT 0 00087 #define USB_FEATURE_EVENT 0 00088 00089 00090 /* 00091 // <e0> USB Class Support 00092 // <i> enables USB Class specific Requests 00093 // <e1> Human Interface Device (HID) 00094 // <o2> Interface Number <0-255> 00095 // </e> 00096 // <e3> Mass Storage 00097 // <o4> Interface Number <0-255> 00098 // </e> 00099 // <e5> Audio Device 00100 // <o6> Control Interface Number <0-255> 00101 // <o7> Streaming Interface 1 Number <0-255> 00102 // <o8> Streaming Interface 2 Number <0-255> 00103 // </e> 00104 // <e9> Communication Device 00105 // <o10> Control Interface Number <0-255> 00106 // <o11> Bulk Interface Number <0-255> 00107 // <o12> Max Communication Device Buffer Size 00108 // <8=> 8 Bytes <16=> 16 Bytes <32=> 32 Bytes <64=> 64 Bytes 00109 // </e> 00110 // </e> 00111 */ 00112 00113 #define USB_CLASS 1 00114 #define USB_HID 0 00115 #define USB_HID_IF_NUM 0 00116 #define USB_MSC 1 00117 #define USB_MSC_IF_NUM 0 00118 #define USB_AUDIO 0 00119 #define USB_ADC_CIF_NUM 0 00120 #define USB_ADC_SIF1_NUM 1 00121 #define USB_ADC_SIF2_NUM 2 00122 #define USB_CDC 0 00123 #define USB_CDC_CIF_NUM 0 00124 #define USB_CDC_DIF_NUM 1 00125 #define USB_CDC_BUFSIZE 64 00126 00127 /* 00128 // <e0> USB Vendor Support 00129 // <i> enables USB Vendor specific Requests 00130 // </e> 00131 */ 00132 #define USB_VENDOR 0 00133 00134 00135 #endif /* __USBCFG_H__ */
Generated on Tue Jul 12 2022 15:37:26 by
1.7.2