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: usb_compile_time_validation.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 |
* Author Date Comment
|
slime@2
|
33 |
*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
slime@2
|
34 |
* Rawin Rojvanit 7/10/04 Original.
|
slime@2
|
35 |
********************************************************************/
|
slime@2
|
36 |
|
slime@2
|
37 |
#ifndef USB_COMPILE_TIME_VALIDATION_H
|
slime@2
|
38 |
#define USB_COMPILE_TIME_VALIDATION_H
|
slime@2
|
39 |
|
slime@2
|
40 |
/** I N C L U D E S *************************************************/
|
slime@2
|
41 |
#include "typedefs.h"
|
slime@2
|
42 |
#include "usb.h"
|
slime@2
|
43 |
|
slime@2
|
44 |
/** U S B V A L I D A T I O N **************************************/
|
slime@2
|
45 |
|
slime@2
|
46 |
#if (EP0_BUFF_SIZE != 8) && (EP0_BUFF_SIZE != 16) && \\
|
slime@2
|
47 |
(EP0_BUFF_SIZE != 32) && (EP0_BUFF_SIZE != 64)
|
slime@2
|
48 |
#error(Invalid buffer size for endpoint 0,check "usbcfg.h")
|
slime@2
|
49 |
#endif
|
slime@2
|
50 |
|
slime@2
|
51 |
#if defined(HID_INT_OUT_EP_SIZE)
|
slime@2
|
52 |
#if (HID_INT_OUT_EP_SIZE > 64)
|
slime@2
|
53 |
#error(HID Out endpoint size cannot be bigger than 64, check "usbcfg.h")
|
slime@2
|
54 |
#endif
|
slime@2
|
55 |
#endif
|
slime@2
|
56 |
|
slime@2
|
57 |
#ifdef HID_INT_IN_EP_SIZE
|
slime@2
|
58 |
#if (HID_INT_IN_EP_SIZE > 64)
|
slime@2
|
59 |
#error(HID In endpoint size cannot be bigger than 64, check "usbcfg.h")
|
slime@2
|
60 |
#endif
|
slime@2
|
61 |
#endif
|
slime@2
|
62 |
|
slime@2
|
63 |
#endif //USB_COMPILE_TIME_VALIDATION_H
|