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