00001 /********************************************************************* 00002 * 00003 * Microchip USB C18 Firmware Version 1.0 00004 * 00005 ********************************************************************* 00006 * FileName: usb_compile_time_validation.h 00007 * Dependencies: See INCLUDES section below 00008 * Processor: PIC18 00009 * Compiler: C18 2.30.01+ 00010 * Company: Microchip Technology, Inc. 00011 * 00012 * Software License Agreement 00013 * 00014 * The software supplied herewith by Microchip Technology Incorporated 00015 * (the “Company”) for its PICmicro® Microcontroller is intended and 00016 * supplied to you, the Company’s customer, for use solely and 00017 * exclusively on Microchip PICmicro Microcontroller products. The 00018 * software is owned by the Company and/or its supplier, and is 00019 * protected under applicable copyright laws. All rights are reserved. 00020 * Any use in violation of the foregoing restrictions may subject the 00021 * user to criminal sanctions under applicable laws, as well as to 00022 * civil liability for the breach of the terms and conditions of this 00023 * license. 00024 * 00025 * THIS SOFTWARE IS PROVIDED IN AN “AS IS” CONDITION. NO WARRANTIES, 00026 * WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING, BUT NOT LIMITED 00027 * TO, IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A 00028 * PARTICULAR PURPOSE APPLY TO THIS SOFTWARE. THE COMPANY SHALL NOT, 00029 * IN ANY CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL OR 00030 * CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER. 00031 * 00032 * Author Date Comment 00033 *~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 00034 * Rawin Rojvanit 7/10/04 Original. 00035 ********************************************************************/ 00036 00037 #ifndef USB_COMPILE_TIME_VALIDATION_H 00038 #define USB_COMPILE_TIME_VALIDATION_H 00039 00040 /** I N C L U D E S *************************************************/ 00041 #include "system\typedefs.h" 00042 #include "system\usb\usb.h" 00043 00044 /** U S B V A L I D A T I O N **************************************/ 00045 00046 #if (EP0_BUFF_SIZE != 8) && (EP0_BUFF_SIZE != 16) && \\ 00047 (EP0_BUFF_SIZE != 32) && (EP0_BUFF_SIZE != 64) 00048 #error(Invalid buffer size for endpoint 0,check "autofiles\usbcfg.h") 00049 #endif 00050 00051 #if defined(HID_INT_OUT_EP_SIZE) 00052 #if (HID_INT_OUT_EP_SIZE > 64) 00053 #error(HID Out endpoint size cannot be bigger than 64, check "autofiles\usbcfg.h") 00054 #endif 00055 #endif 00056 00057 #ifdef HID_INT_IN_EP_SIZE 00058 #if (HID_INT_IN_EP_SIZE > 64) 00059 #error(HID In endpoint size cannot be bigger than 64, check "autofiles\usbcfg.h") 00060 #endif 00061 #endif 00062 00063 #endif //USB_COMPILE_TIME_VALIDATION_H