Netcruzer Library API  V2.03
 All Data Structures Files Functions Variables Typedefs Enumerations Macros Groups Pages
nz_board.h
Go to the documentation of this file.
1 
34 #ifndef NZ_BOARD_H
35 #define NZ_BOARD_H
36 
37 
39 #ifndef INPUT_PIN
40 #define INPUT_PIN 1
41 #endif
42 #ifndef OUTPUT_PIN
43 #define OUTPUT_PIN 0
44 #endif
45 
46 
47 
49 //Hardware Specific Defines - first include the Processor Board. To include one of these file with the project, add
50 //the BRD_XX define in the MPLAB project (macros), or in the HardwareProfile.h file (before nz_board.h include)
51 #if defined(BRD_SBC66EC_R1)
52  #include "brd_sbc66ec-r1.h"
53 #elif defined(BRD_SBC66EC_R2)
54  #include "brd_sbc66ec-r2.h"
55 #elif defined(BRD_SBC66ECL_R2)
56  #include "brd_sbc66ecl-r2.h"
57 #elif defined(BRD_SBC66UAL_R1)
58  #include "brd_sbc66ual-r1.h"
59 #elif defined(BRD_SBC66ZL_R1)
60  #include "brd_sbc66zl-r1.h"
61 #elif defined(BRD_SBC32UL_R1)
62  #include "brd_sbc32ul-r1.h"
63 #else
64  #error "No extended HWP .h included. Add the appropriate compiler macro to the MPLAB project."
65 #endif
66 
67 
69 //Hardware Specific Defines for any add-on boards. To include one of these file with the project, add
70 //the BRD_XX define in the MPLAB project (macros), or in the HardwareProfile.h file (before nz_board.h include)
71 #if defined(XBRD_PT66DIN6_R1)
72  #define HAS_IMOD
73  #define XBRD_PT66DIN6
74  #include "nz_pt66din6.h" //Board define for PT66DIN6 board
75  #include "nz_imod.h" //This expansion board has iMod ports
76 #elif defined(XBRD_PT66ECI_R1)
77  #define HAS_IMOD
78  #define XBRD_PT66ECI
79  #include "nz_pt66eci.h" //Board define for PT66ECI prototype board
80  #include "nz_imod.h" //This expansion board has iMod ports
81 #elif defined(XBRD_PT66EI_10P_R1)
82  #define HAS_IMOD
83  #define XBRD_PT66EI10P
84  #include "nz_pt66ei10p.h" //Board define for PT66EI prototype board
85  #include "nz_imod.h" //This expansion board has iMod ports
86 #elif defined(XBRD_PT66EI_10P_R2)
87  #define HAS_IMOD
88  #define XBRD_PT66EI10P
89  #include "nz_pt66ei10p.h" //Board define for PT66EI prototype board
90  #include "nz_imod.h" //This expansion board has iMod ports
91 #elif defined(XBRD_PT66EI_24P_R1)
92  #define HAS_IMOD
93  #define XBRD_PT66EI24P
94  #include "nz_pt66ei24p.h" //Board define for PT66EI prototype board
95  #include "nz_imod.h" //This expansion board has iMod ports
96 #elif defined(XBRD_PT66EI_24P_R2)
97  #define HAS_IMOD
98  #define XBRD_PT66EI24P
99  #include "nz_pt66ei24p.h" //Board define for PT66EI prototype board
100  #include "nz_imod.h" //This expansion board has iMod ports
101 #elif defined(XBRD_DB66DEV1_R1)
102  #define HAS_IMOD
103  #define XBRD_DB66DEV1
104  #include "nz_db66dev1.h" //Board define for DB66DEV1 development board
105 #endif
106 
107 
109 //Define defaults for LEDs and Buttons not present on this board, but that are often used by Microchip project
110 //included with MAL. To NOT include with the project, add BRD_NO_DEFAULTS define in the MPLAB project (macros), or
111 //in the HardwareProfile.h file (before nz_board.h include)
112 #ifndef BRD_NO_DEFAULTS
113 #include "nz_board_defaults.h"
114 #endif
115 
116 
117 #define IOPORT_X0 0
118 #define IOPORT_X1 1
119 #define IOPORT_X2 2
120 #define IOPORT_X3 3
121 #define IOPORT_X4 4
122 #define IOPORT_X5 5
123 #define IOPORT_X6 6
124 #define IOPORT_X7 7
125 #define IOPORT_X8 8
126 #define IOPORT_X9 9
127 #define IOPORT_X10 10
128 #define IOPORT_X11 11
129 #define IOPORT_SD 12
130 #define IOPORT_SC 13
131 #define IOPORT_T0 20
132 #define IOPORT_T1 21
133 #define IOPORT_T2 22
134 #define IOPORT_T3 23
135 #define IOPORT_S0 24
136 #define IOPORT_S1 25
137 #define IOPORT_T4 26
138 #define IOPORT_T5 27
139 #define IOPORT_T6 28
140 #define IOPORT_T7 29
141 #define IOPORT_Y0 30
142 #define IOPORT_Y1 31
143 #define IOPORT_Y2 32
144 #define IOPORT_Y3 33
145 #define IOPORT_Y4 34
146 #define IOPORT_Y5 35
147 #define IOPORT_Y6 36
148 #define IOPORT_Y7 37
149 #define IOPORT_Y8 38
150 #define IOPORT_Y9 39
151 #define IOPORT_Y10 40
152 #define IOPORT_Y11 41
153 
154 #endif //#ifndef NZ_BOARD_H