HardwareProfile.h 3.9 KB

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