| Line No. | Rev | Author | Line |
|---|---|---|---|
| 1 | 32 | kaklik | //DOM-IGNORE-BEGIN |
| 2 | /********************************************************************* |
||
| 3 | * The following lines are used by VDI. |
||
| 4 | * GUID=E537A0C0-6FEE-4afd-89B9-0C35BF72A80B |
||
| 5 | * GUIInterfaceVersion=1.00 |
||
| 6 | * LibraryVersion=2.4 |
||
| 7 | *********************************************************************/ |
||
| 8 | //DOM-IGNORE-END |
||
| 9 | /******************************************************************************* |
||
| 10 | |||
| 11 | USB Header File |
||
| 12 | |||
| 13 | Summary: |
||
| 14 | This file aggregates all necessary header files for the Microchip USB Host, |
||
| 15 | Device, and OTG libraries. It provides a single-file can be included in |
||
| 16 | application code. The USB libraries simplify the implementation of USB |
||
| 17 | applications by providing an abstraction of the USB module and its registers |
||
| 18 | and bits such that the source code for the can be the same across various |
||
| 19 | hardware platforms. |
||
| 20 | |||
| 21 | Description: |
||
| 22 | This file aggregates all necessary header files for the Microchip USB Host, |
||
| 23 | Device, and OTG libraries. It provides a single-file can be included in |
||
| 24 | application code. The USB libraries simplify the implementation of USB |
||
| 25 | applications by providing an abstraction of the USB module and its registers |
||
| 26 | and bits such that the source code for the can be the same across various |
||
| 27 | hardware platforms. |
||
| 28 | |||
| 29 | Note that this file does not include the header files for any client or |
||
| 30 | function drivers. |
||
| 31 | |||
| 32 | This file is located in the "\<Install Directory\>\\Microchip\\Include\\USB" |
||
| 33 | directory. |
||
| 34 | |||
| 35 | When including this file in a new project, this file can either be |
||
| 36 | referenced from the directory in which it was installed or copied |
||
| 37 | directly into the user application folder. If the first method is |
||
| 38 | chosen to keep the file located in the folder in which it is installed |
||
| 39 | then include paths need to be added so that the library and the |
||
| 40 | application both know where to reference each others files. If the |
||
| 41 | application folder is located in the same folder as the Microchip |
||
| 42 | folder (like the current demo folders), then the following include |
||
| 43 | paths need to be added to the application's project: |
||
| 44 | |||
| 45 | . |
||
| 46 | |||
| 47 | ..\\..\\Microchip\\Include |
||
| 48 | |||
| 49 | If a different directory structure is used, modify the paths as |
||
| 50 | required. An example using absolute paths instead of relative paths |
||
| 51 | would be the following: |
||
| 52 | |||
| 53 | C:\\Microchip Solutions\\Microchip\\Include |
||
| 54 | |||
| 55 | C:\\Microchip Solutions\\My Demo Application |
||
| 56 | |||
| 57 | ******************************************************************************/ |
||
| 58 | /****************************************************************************** |
||
| 59 | FileName: usb.h |
||
| 60 | Dependencies: See INCLUDES section |
||
| 61 | Processor: PIC18, PIC24, & PIC32 USB Microcontrollers |
||
| 62 | Hardware: |
||
| 63 | Complier: Microchip C18 (for PIC18), C30 (for PIC24), or C32 (for PIC32) |
||
| 64 | Company: Microchip Technology, Inc. |
||
| 65 | |||
| 66 | Software License Agreement: |
||
| 67 | |||
| 68 | The software supplied herewith by Microchip Technology Incorporated |
||
| 69 | (the Company) for its PICmicro® Microcontroller is intended and |
||
| 70 | supplied to you, the Companys customer, for use solely and |
||
| 71 | exclusively on Microchip PICmicro Microcontroller products. The |
||
| 72 | software is owned by the Company and/or its supplier, and is |
||
| 73 | protected under applicable copyright laws. All rights are reserved. |
||
| 74 | Any use in violation of the foregoing restrictions may subject the |
||
| 75 | user to criminal sanctions under applicable laws, as well as to |
||
| 76 | civil liability for the breach of the terms and conditions of this |
||
| 77 | license. |
||
| 78 | |||
| 79 | THIS SOFTWARE IS PROVIDED IN AN AS IS CONDITION. NO WARRANTIES, |
||
| 80 | WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING, BUT NOT LIMITED |
||
| 81 | TO, IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A |
||
| 82 | PARTICULAR PURPOSE APPLY TO THIS SOFTWARE. THE COMPANY SHALL NOT, |
||
| 83 | IN ANY CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL OR |
||
| 84 | CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER. |
||
| 85 | ********************************************************************/ |
||
| 86 | //DOM-IGNORE-END |
||
| 87 | |||
| 88 | //DOM-IGNORE-BEGIN |
||
| 89 | /******************************************************************** |
||
| 90 | File Description: |
||
| 91 | |||
| 92 | Change History: |
||
| 93 | Rev Description |
||
| 94 | ---------- ----------- |
||
| 95 | 2.6 - 2.7a No change except stack revision number |
||
| 96 | ********************************************************************/ |
||
| 97 | //DOM-IGNORE-END |
||
| 98 | |||
| 99 | #ifndef _USB_H_ |
||
| 100 | #define _USB_H_ |
||
| 101 | //DOM-IGNORE-END |
||
| 102 | |||
| 103 | |||
| 104 | // ***************************************************************************** |
||
| 105 | // ***************************************************************************** |
||
| 106 | // Section: All necessary USB Library headers |
||
| 107 | // ***************************************************************************** |
||
| 108 | // ***************************************************************************** |
||
| 109 | |||
| 110 | #include "GenericTypeDefs.h" |
||
| 111 | #include "Compiler.h" |
||
| 112 | |||
| 113 | #include "usb_config.h" // Must be defined by the application |
||
| 114 | |||
| 115 | #include "usb/usb_common.h" // Common USB library definitions |
||
| 116 | #include "usb/usb_ch9.h" // USB device framework definitions |
||
| 117 | |||
| 118 | #if defined( USB_SUPPORT_DEVICE ) |
||
| 119 | #include "usb/usb_device.h" // USB Device abstraction layer interface |
||
| 120 | #endif |
||
| 121 | |||
| 122 | #if defined( USB_SUPPORT_HOST ) |
||
| 123 | #include "usb/usb_host.h" // USB Host abstraction layer interface |
||
| 124 | #endif |
||
| 125 | |||
| 126 | #if defined ( USB_SUPPORT_OTG ) |
||
| 127 | #include "usb/usb_otg.h" |
||
| 128 | #endif |
||
| 129 | |||
| 130 | #include "usb/usb_hal.h" // Hardware Abstraction Layer interface |
||
| 131 | |||
| 132 | // ***************************************************************************** |
||
| 133 | // ***************************************************************************** |
||
| 134 | // Section: MCHPFSUSB Firmware Version |
||
| 135 | // ***************************************************************************** |
||
| 136 | // ***************************************************************************** |
||
| 137 | |||
| 138 | #define USB_MAJOR_VER 2 // Firmware version, major release number. |
||
| 139 | #define USB_MINOR_VER 7 // Firmware version, minor release number. |
||
| 140 | #define USB_DOT_VER 1 // Firmware version, dot release number. |
||
| 141 | |||
| 142 | #endif // _USB_H_ |
||
| 143 | /************************************************************************* |
||
| 144 | * EOF |
||
| 145 | */ |
||
| 146 |
Powered by WebSVN v2.8.3