1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/firmware/usbdsc.h Tue Jan 29 22:31:52 2008 +0100
1.3 @@ -0,0 +1,75 @@
1.4 +/*********************************************************************
1.5 + *
1.6 + * Microchip USB C18 Firmware Version 1.0
1.7 + *
1.8 + *********************************************************************
1.9 + * FileName: usbdsc.h
1.10 + * Dependencies: See INCLUDES section below
1.11 + * Processor: PIC18
1.12 + * Compiler: C18 2.30.01+
1.13 + * Company: Microchip Technology, Inc.
1.14 + *
1.15 + * Software License Agreement
1.16 + *
1.17 + * The software supplied herewith by Microchip Technology Incorporated
1.18 + * (the “Company”) for its PICmicro® Microcontroller is intended and
1.19 + * supplied to you, the Company’s customer, for use solely and
1.20 + * exclusively on Microchip PICmicro Microcontroller products. The
1.21 + * software is owned by the Company and/or its supplier, and is
1.22 + * protected under applicable copyright laws. All rights are reserved.
1.23 + * Any use in violation of the foregoing restrictions may subject the
1.24 + * user to criminal sanctions under applicable laws, as well as to
1.25 + * civil liability for the breach of the terms and conditions of this
1.26 + * license.
1.27 + *
1.28 + * THIS SOFTWARE IS PROVIDED IN AN “AS IS” CONDITION. NO WARRANTIES,
1.29 + * WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING, BUT NOT LIMITED
1.30 + * TO, IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
1.31 + * PARTICULAR PURPOSE APPLY TO THIS SOFTWARE. THE COMPANY SHALL NOT,
1.32 + * IN ANY CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL OR
1.33 + * CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER.
1.34 + *
1.35 + ********************************************************************/
1.36 +
1.37 +/*********************************************************************
1.38 + * Descriptor specific type definitions are defined in:
1.39 + * system\usb\usbdefs\usbdefs_std_dsc.h
1.40 + ********************************************************************/
1.41 +
1.42 +#ifndef USBDSC_H
1.43 +#define USBDSC_H
1.44 +
1.45 +/** I N C L U D E S *************************************************/
1.46 +#include "typedefs.h"
1.47 +#include "usbcfg.h"
1.48 +
1.49 +#if defined(USB_USE_CDC)
1.50 +#include "cdc.h"
1.51 +#endif
1.52 +
1.53 +#include "usb.h"
1.54 +
1.55 +/** D E F I N I T I O N S *******************************************/
1.56 +
1.57 +#define CFG01 rom struct \
1.58 +{ USB_CFG_DSC cd01; \
1.59 + USB_INTF_DSC i01a00; \
1.60 + USB_CDC_HEADER_FN_DSC cdc_header_fn_i01a00; \
1.61 + USB_CDC_ACM_FN_DSC cdc_acm_fn_i01a00; \
1.62 + USB_CDC_UNION_FN_DSC cdc_union_fn_i01a00; \
1.63 + USB_CDC_CALL_MGT_FN_DSC cdc_call_mgt_fn_i01a00; \
1.64 + USB_EP_DSC ep02i_i01a00; \
1.65 + USB_INTF_DSC i02a00; \
1.66 + USB_EP_DSC ep03o_i02a00; \
1.67 + USB_EP_DSC ep03i_i02a00; \
1.68 +} cfg01
1.69 +
1.70 +/** E X T E R N S ***************************************************/
1.71 +extern rom USB_DEV_DSC device_dsc;
1.72 +extern CFG01;
1.73 +extern rom const unsigned char *rom USB_CD_Ptr[];
1.74 +extern rom const unsigned char *rom USB_SD_Ptr[];
1.75 +
1.76 +extern rom pFunc ClassReqHandler[1];
1.77 +
1.78 +#endif //USBDSC_H