Rev 1661 Rev 1691
1 /******************************************************************** 1 /********************************************************************
2 FileName: HardwareProfile.h 2 FileName: HardwareProfile.h
3 Dependencies: See INCLUDES section 3 Dependencies: See INCLUDES section
4 Processor: PIC18, PIC24, or PIC32 USB Microcontrollers 4 Processor: PIC18, PIC24, or PIC32 USB Microcontrollers
5 Hardware: The code is natively intended to be used on the 5 Hardware: The code is natively intended to be used on the
6 following hardware platforms: 6 following hardware platforms:
7 PICDEM™ FS USB Demo Board 7 PICDEM™ FS USB Demo Board
8 PIC18F46J50 FS USB Plug-In Module 8 PIC18F46J50 FS USB Plug-In Module
9 PIC18F87J50 FS USB Plug-In Module 9 PIC18F87J50 FS USB Plug-In Module
10 Explorer 16 + PIC24 or PIC32 USB PIMs 10 Explorer 16 + PIC24 or PIC32 USB PIMs
11 PIC24F Starter Kit 11 PIC24F Starter Kit
12 Low Pin Count USB Development Kit 12 Low Pin Count USB Development Kit
13 The firmware may be modified for use on other USB 13 The firmware may be modified for use on other USB
14 platforms by editing this file (HardwareProfile.h) 14 platforms by editing this file (HardwareProfile.h)
15 Compiler: Microchip C18 (for PIC18), C30 (for PIC24), 15 Compiler: Microchip C18 (for PIC18), C30 (for PIC24),
16 or C32 (for PIC32) 16 or C32 (for PIC32)
17 Company: Microchip Technology, Inc. 17 Company: Microchip Technology, Inc.
18   18  
19 Software License Agreement: 19 Software License Agreement:
20   20  
21 The software supplied herewith by Microchip Technology Incorporated 21 The software supplied herewith by Microchip Technology Incorporated
22 (the “Company”) for its PIC® Microcontroller is intended and 22 (the “Company”) for its PIC® Microcontroller is intended and
23 supplied to you, the Company’s customer, for use solely and 23 supplied to you, the Company’s customer, for use solely and
24 exclusively on Microchip PIC Microcontroller products. The 24 exclusively on Microchip PIC Microcontroller products. The
25 software is owned by the Company and/or its supplier, and is 25 software is owned by the Company and/or its supplier, and is
26 protected under applicable copyright laws. All rights are reserved. 26 protected under applicable copyright laws. All rights are reserved.
27 Any use in violation of the foregoing restrictions may subject the 27 Any use in violation of the foregoing restrictions may subject the
28 user to criminal sanctions under applicable laws, as well as to 28 user to criminal sanctions under applicable laws, as well as to
29 civil liability for the breach of the terms and conditions of this 29 civil liability for the breach of the terms and conditions of this
30 license. 30 license.
31   31  
32 THIS SOFTWARE IS PROVIDED IN AN “AS IS” CONDITION. NO WARRANTIES, 32 THIS SOFTWARE IS PROVIDED IN AN “AS IS” CONDITION. NO WARRANTIES,
33 WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING, BUT NOT LIMITED 33 WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING, BUT NOT LIMITED
34 TO, IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A 34 TO, IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
35 PARTICULAR PURPOSE APPLY TO THIS SOFTWARE. THE COMPANY SHALL NOT, 35 PARTICULAR PURPOSE APPLY TO THIS SOFTWARE. THE COMPANY SHALL NOT,
36 IN ANY CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL OR 36 IN ANY CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL OR
37 CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER. 37 CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER.
38   38  
39 ******************************************************************** 39 ********************************************************************
40 File Description: 40 File Description:
41   41  
42 Change History: 42 Change History:
43 Rev Date Description 43 Rev Date Description
44 1.0 11/19/2004 Initial release 44 1.0 11/19/2004 Initial release
45 2.1 02/26/2007 Updated for simplicity and to use common 45 2.1 02/26/2007 Updated for simplicity and to use common
46 coding style 46 coding style
47 2.3 09/15/2008 Broke out each hardware platform into its own 47 2.3 09/15/2008 Broke out each hardware platform into its own
48 "HardwareProfile - xxx.h" file 48 "HardwareProfile - xxx.h" file
49 ********************************************************************/ 49 ********************************************************************/
50   50  
51 #ifndef HARDWARE_PROFILE_H 51 #ifndef HARDWARE_PROFILE_H
52 #define HARDWARE_PROFILE_H 52 #define HARDWARE_PROFILE_H
53   53  
54 //#define DEMO_BOARD USER_DEFINED_BOARD 54 //#define DEMO_BOARD USER_DEFINED_BOARD
55   55  
56   56  
57 #if !defined(DEMO_BOARD) 57 #if !defined(DEMO_BOARD)
58 #if defined(__C32__) 58 #if defined(__C32__)
59 #if defined(__32MX460F512L__) 59 #if defined(__32MX460F512L__)
60 #if defined(PIC32MX460F512L_PIM) 60 #if defined(PIC32MX460F512L_PIM)
61 #include "HardwareProfile - PIC32MX460F512L PIM.h" 61 #include "HardwareProfile - PIC32MX460F512L PIM.h"
62 #elif defined(PIC32_USB_STARTER_KIT) 62 #elif defined(PIC32_USB_STARTER_KIT)
63 #include "HardwareProfile - PIC32 USB Starter Kit.h" 63 #include "HardwareProfile - PIC32 USB Starter Kit.h"
64 #else 64 #else
65 #include "HardwareProfile - UBW32.h" 65 #include "HardwareProfile - UBW32.h"
66 #endif 66 #endif
67 #elif defined(__32MX795F512L__) 67 #elif defined(__32MX795F512L__)
68 #if defined(PIC32MX795F512L_PIM) 68 #if defined(PIC32MX795F512L_PIM)
69 #include "HardwareProfile - PIC32MX795F512L PIM.h" 69 #include "HardwareProfile - PIC32MX795F512L PIM.h"
70 #elif defined(PIC32_USB_STARTER_KIT) 70 #elif defined(PIC32_USB_STARTER_KIT)
71 //PIC32 USB Starter Kit II 71 //PIC32 USB Starter Kit II
72 #include "HardwareProfile - PIC32 USB Starter Kit.h" 72 #include "HardwareProfile - PIC32 USB Starter Kit.h"
73 #endif 73 #endif
74 #endif 74 #endif
75 #endif 75 #endif
76 #if defined(__C30__) 76 #if defined(__C30__)
77 #if defined(__PIC24FJ256GB110__) 77 #if defined(__PIC24FJ256GB110__)
78 #include "HardwareProfile - PIC24FJ256GB110 PIM.h" 78 #include "HardwareProfile - PIC24FJ256GB110 PIM.h"
79 #elif defined(__PIC24FJ256GB106__) 79 #elif defined(__PIC24FJ256GB106__)
80 #include "HardwareProfile - PIC24F Starter Kit.h" 80 #include "HardwareProfile - PIC24F Starter Kit.h"
81 #endif 81 #endif
82 #endif 82 #endif
83   83  
84 #if defined(__18CXX) 84 #if defined(__18CXX)
85 #if defined(__18F4550) 85 #if defined(__18F4550)
86 #include "HardwareProfile - PICDEM FSUSB.h" 86 #include "HardwareProfile - UBW.h"
87 #elif defined(__18F87J50) 87 #elif defined(__18F87J50)
88 #include "HardwareProfile - PIC18F87J50 PIM.h" 88 #include "HardwareProfile - PIC18F87J50 PIM.h"
89 #elif defined(__18F14K50) 89 #elif defined(__18F14K50)
90 #include "HardwareProfile - Low Pin Count USB Development Kit.h" 90 #include "HardwareProfile - Low Pin Count USB Development Kit.h"
91 #elif defined(__18F46J50) 91 #elif defined(__18F46J50)
92 #include "HardwareProfile - PIC18F46J50 PIM.h" 92 #include "HardwareProfile - PIC18F46J50 PIM.h"
93 #elif defined(__18F2550) 93 #elif defined(__18F2550)
94 #include "HardwareProfile - UBW.h" 94 #include "HardwareProfile - UBW.h"
95 #endif 95 #endif
96 #endif 96 #endif
97 #endif 97 #endif
98   98  
99 #if !defined(DEMO_BOARD) 99 #if !defined(DEMO_BOARD)
100 #error "Demo board not defined. Either define DEMO_BOARD for a custom board or select the correct processor for the demo board." 100 #error "Demo board not defined. Either define DEMO_BOARD for a custom board or select the correct processor for the demo board."
101 #endif 101 #endif
102   102  
103 #endif //HARDWARE_PROFILE_H 103 #endif //HARDWARE_PROFILE_H