PDL for FM4  Version1.2
Peripheral Driverl Library for FM4
usbconfig.h
Go to the documentation of this file.
1 /*******************************************************************************
2 * Copyright (C) 2013 Spansion LLC. All Rights Reserved.
3 *
4 * This software is owned and published by:
5 * Spansion LLC, 915 DeGuigne Dr. Sunnyvale, CA 94088-3453 ("Spansion").
6 *
7 * BY DOWNLOADING, INSTALLING OR USING THIS SOFTWARE, YOU AGREE TO BE BOUND
8 * BY ALL THE TERMS AND CONDITIONS OF THIS AGREEMENT.
9 *
10 * This software contains source code for use with Spansion
11 * components. This software is licensed by Spansion to be adapted only
12 * for use in systems utilizing Spansion components. Spansion shall not be
13 * responsible for misuse or illegal use of this software for devices not
14 * supported herein. Spansion is providing this software "AS IS" and will
15 * not be responsible for issues arising from incorrect user implementation
16 * of the software.
17 *
18 * SPANSION MAKES NO WARRANTY, EXPRESS OR IMPLIED, ARISING BY LAW OR OTHERWISE,
19 * REGARDING THE SOFTWARE (INCLUDING ANY ACOOMPANYING WRITTEN MATERIALS),
20 * ITS PERFORMANCE OR SUITABILITY FOR YOUR INTENDED USE, INCLUDING,
21 * WITHOUT LIMITATION, THE IMPLIED WARRANTY OF MERCHANTABILITY, THE IMPLIED
22 * WARRANTY OF FITNESS FOR A PARTICULAR PURPOSE OR USE, AND THE IMPLIED
23 * WARRANTY OF NONINFRINGEMENT.
24 * SPANSION SHALL HAVE NO LIABILITY (WHETHER IN CONTRACT, WARRANTY, TORT,
25 * NEGLIGENCE OR OTHERWISE) FOR ANY DAMAGES WHATSOEVER (INCLUDING, WITHOUT
26 * LIMITATION, DAMAGES FOR LOSS OF BUSINESS PROFITS, BUSINESS INTERRUPTION,
27 * LOSS OF BUSINESS INFORMATION, OR OTHER PECUNIARY LOSS) ARISING FROM USE OR
28 * INABILITY TO USE THE SOFTWARE, INCLUDING, WITHOUT LIMITATION, ANY DIRECT,
29 * INDIRECT, INCIDENTAL, SPECIAL OR CONSEQUENTIAL DAMAGES OR LOSS OF DATA,
30 * SAVINGS OR PROFITS,
31 * EVEN IF SPANSION HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
32 * YOU ASSUME ALL RESPONSIBILITIES FOR SELECTION OF THE SOFTWARE TO ACHIEVE YOUR
33 * INTENDED RESULTS, AND FOR THE INSTALLATION OF, USE OF, AND RESULTS OBTAINED
34 * FROM, THE SOFTWARE.
35 *
36 * This software may be replicated in part or whole for the licensed use,
37 * with the restriction that this Disclaimer and Copyright notice must be
38 * included with each copy of this software, whether used in part or whole,
39 * at all times.
40 */
41 /******************************************************************************/
55 #ifndef __USBCONFIG_H__
56 #define __USBCONFIG_H__
57 
58 /*****************************************************************************/
59 /* Global pre-processor symbols/macros ('#define') */
60 /*****************************************************************************/
61 
62 #define USEUSBDBG 0
63 #define USBWARNLEVEL 0 //0: no warnings, 1: hard warnings, 2: all warnings
64 #define USE_USBDESCRIPTORS_H 0 //<- 1 use usbdescriptors.h file for USB descriptors settings, 0 for disabling
65 #define USE_USBDEVICEHW_H 0 //<- 1 use usbdevicehw.h file for gpio settings, 0 for disabling
66 #define USE_USBHOSTHW_H 0 //<- 1 use usbhosthw.h file for gpio settings, 0 for disabling
67 #define USE_USBHOSTCLASSDRIVERTABLE_H 0 //<- 1 use usbhostclassdrivertable.h file
68 #define USB_USE_L3 0 //<- 1 use as part of L3 library, 0 for using without L3 library
69 #define USB_USE_PDL 1 //<- 1 use as part of PDL library, 0 for using without PDL library
70 
71 
72 
73 /* START Middleware Modules */
74 
75 #if ((USB_USE_PDL == 0) && (USB_USE_L3 == 0))
76 /* DEVICE */
77 #define USBDEVICECDCCOM_ENABLED OFF
78 #define USBDEVICEHIDCOM_ENABLED OFF
79 #define USBDEVICEHIDJOYSTICK_ENABLED OFF
80 #define USBDEVICEHIDKEYBOARD_ENABLED OFF
81 #define USBDEVICEHIDMOUSE_ENABLED OFF
82 #define USBDEVICELIBUSB_ENABLED OFF
83 #define USBDEVICEPRINTER_ENABLED OFF
84 
85 /* HOST */
86 #define USBHOSTHIDCOM_ENABLED OFF
87 #define USBHOSTHIDKEYBOARD_ENABLED OFF
88 #define USBHOSTHIDMOUSE_ENABLED OFF
89 #define USBHOSTMASSSTORAGE_ENABLED OFF
90 
91 /* END Middleware Modules */
92 
93 /* only used if USB is used without L3 or PDL*/
94 #define USB0_HOST_ENABLED 0
95 #define USB0_DEVICE_ENABLED 0
96 #define USB1_HOST_ENABLED 0
97 #define USB1_DEVICE_ENABLED 0
98 #define USB0_DEVICE_IRQ_ENABLED 1
99 #define USB0_HOST_IRQ_ENABLED 1
100 #define USB1_DEVICE_IRQ_ENABLED 1
101 #define USB1_HOST_IRQ_ENABLED 1
102 #define USB_USE_EXT_INT 0
103 #define IRQ_LEVEL_USB0 3
104 #define IRQ_LEVEL_USB1 3
105 #define USB_USES_DMA 0
106 #define USB_USES_DMA_0 1
107 #define USB_USES_DMA_1 1
108 #define USB_USES_DMA_2 0
109 #define USB_USES_DMA_3 0
110 #define USB_USES_DMA_4 0
111 #define USB_USES_DMA_5 0
112 #define USB_USES_DMA_6 0
113 #define USB_USES_DMA_7 0
114 
115 #endif /* ((USB_USE_PDL == 0) && (USB_USE_L3 == 0)) */
116 
117 #endif