slime@2
|
1 |
/*********************************************************************
|
slime@2
|
2 |
*
|
slime@2
|
3 |
* Microchip USB C18 Firmware Version 1.0
|
slime@2
|
4 |
*
|
slime@2
|
5 |
*********************************************************************
|
slime@2
|
6 |
* FileName: usbdsc.h
|
slime@2
|
7 |
* Dependencies: See INCLUDES section below
|
slime@2
|
8 |
* Processor: PIC18
|
slime@2
|
9 |
* Compiler: C18 2.30.01+
|
slime@2
|
10 |
* Company: Microchip Technology, Inc.
|
slime@2
|
11 |
*
|
slime@2
|
12 |
* Software License Agreement
|
slime@2
|
13 |
*
|
slime@2
|
14 |
* The software supplied herewith by Microchip Technology Incorporated
|
slime@2
|
15 |
* (the “Company”) for its PICmicro® Microcontroller is intended and
|
slime@2
|
16 |
* supplied to you, the Company’s customer, for use solely and
|
slime@2
|
17 |
* exclusively on Microchip PICmicro Microcontroller products. The
|
slime@2
|
18 |
* software is owned by the Company and/or its supplier, and is
|
slime@2
|
19 |
* protected under applicable copyright laws. All rights are reserved.
|
slime@2
|
20 |
* Any use in violation of the foregoing restrictions may subject the
|
slime@2
|
21 |
* user to criminal sanctions under applicable laws, as well as to
|
slime@2
|
22 |
* civil liability for the breach of the terms and conditions of this
|
slime@2
|
23 |
* license.
|
slime@2
|
24 |
*
|
slime@2
|
25 |
* THIS SOFTWARE IS PROVIDED IN AN “AS IS” CONDITION. NO WARRANTIES,
|
slime@2
|
26 |
* WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING, BUT NOT LIMITED
|
slime@2
|
27 |
* TO, IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
|
slime@2
|
28 |
* PARTICULAR PURPOSE APPLY TO THIS SOFTWARE. THE COMPANY SHALL NOT,
|
slime@2
|
29 |
* IN ANY CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL OR
|
slime@2
|
30 |
* CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER.
|
slime@2
|
31 |
*
|
slime@2
|
32 |
********************************************************************/
|
slime@2
|
33 |
|
slime@2
|
34 |
/*********************************************************************
|
slime@2
|
35 |
* Descriptor specific type definitions are defined in:
|
slime@2
|
36 |
* system\usb\usbdefs\usbdefs_std_dsc.h
|
slime@2
|
37 |
********************************************************************/
|
slime@2
|
38 |
|
slime@2
|
39 |
#ifndef USBDSC_H
|
slime@2
|
40 |
#define USBDSC_H
|
slime@2
|
41 |
|
slime@2
|
42 |
/** I N C L U D E S *************************************************/
|
slime@2
|
43 |
#include "typedefs.h"
|
slime@2
|
44 |
#include "usbcfg.h"
|
slime@2
|
45 |
|
slime@2
|
46 |
#if defined(USB_USE_CDC)
|
slime@2
|
47 |
#include "cdc.h"
|
slime@2
|
48 |
#endif
|
slime@2
|
49 |
|
slime@2
|
50 |
#include "usb.h"
|
slime@2
|
51 |
|
slime@2
|
52 |
/** D E F I N I T I O N S *******************************************/
|
slime@2
|
53 |
|
slime@2
|
54 |
#define CFG01 rom struct \
|
slime@2
|
55 |
{ USB_CFG_DSC cd01; \
|
slime@2
|
56 |
USB_INTF_DSC i01a00; \
|
slime@2
|
57 |
USB_CDC_HEADER_FN_DSC cdc_header_fn_i01a00; \
|
slime@2
|
58 |
USB_CDC_ACM_FN_DSC cdc_acm_fn_i01a00; \
|
slime@2
|
59 |
USB_CDC_UNION_FN_DSC cdc_union_fn_i01a00; \
|
slime@2
|
60 |
USB_CDC_CALL_MGT_FN_DSC cdc_call_mgt_fn_i01a00; \
|
slime@2
|
61 |
USB_EP_DSC ep02i_i01a00; \
|
slime@2
|
62 |
USB_INTF_DSC i02a00; \
|
slime@2
|
63 |
USB_EP_DSC ep03o_i02a00; \
|
slime@2
|
64 |
USB_EP_DSC ep03i_i02a00; \
|
slime@2
|
65 |
} cfg01
|
slime@2
|
66 |
|
slime@2
|
67 |
/** E X T E R N S ***************************************************/
|
slime@2
|
68 |
extern rom USB_DEV_DSC device_dsc;
|
slime@2
|
69 |
extern CFG01;
|
slime@2
|
70 |
extern rom const unsigned char *rom USB_CD_Ptr[];
|
slime@2
|
71 |
extern rom const unsigned char *rom USB_SD_Ptr[];
|
slime@2
|
72 |
|
slime@2
|
73 |
extern rom pFunc ClassReqHandler[1];
|
slime@2
|
74 |
|
slime@2
|
75 |
#endif //USBDSC_H
|