1 /*********************************************************************
3 * Microchip USB C18 Firmware Version 1.0
5 *********************************************************************
6 * FileName: usb_compile_time_validation.h
7 * Dependencies: See INCLUDES section below
9 * Compiler: C18 2.30.01+
10 * Company: Microchip Technology, Inc.
12 * Software License Agreement
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
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.
33 *~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
34 * Rawin Rojvanit 7/10/04 Original.
35 ********************************************************************/
37 #ifndef USB_COMPILE_TIME_VALIDATION_H
38 #define USB_COMPILE_TIME_VALIDATION_H
40 /** I N C L U D E S *************************************************/
44 /** U S B V A L I D A T I O N **************************************/
46 #if (EP0_BUFF_SIZE != 8) && (EP0_BUFF_SIZE != 16) && \\
47 (EP0_BUFF_SIZE != 32) && (EP0_BUFF_SIZE != 64)
48 #error(Invalid buffer size for endpoint 0,check "usbcfg.h")
51 #if defined(HID_INT_OUT_EP_SIZE)
52 #if (HID_INT_OUT_EP_SIZE > 64)
53 #error(HID Out endpoint size cannot be bigger than 64, check "usbcfg.h")
57 #ifdef HID_INT_IN_EP_SIZE
58 #if (HID_INT_IN_EP_SIZE > 64)
59 #error(HID In endpoint size cannot be bigger than 64, check "usbcfg.h")
63 #endif //USB_COMPILE_TIME_VALIDATION_H