?lang_form? ?lang_select? ?lang_submit? ?lang_endform?
{HEADER END}
{BLAME START}

library

?curdirlinks? -

Blame information for rev 32

Line No. Rev Author Line
1 32 kaklik /********************************************************************
2 FileName: pps18.h
3 Dependencies: See INCLUDES section
4 Processor: PIC18 Microcontrollers
5 Hardware: This demo is natively intended to be used on LPC & HPC Exp board.
6 This demo can be modified for use on other hardware platforms.
7 Complier: Microchip C18 (for PIC18)
8 Company: Microchip Technology, Inc.
9  
10 Software License Agreement:
11  
12 The software supplied herewith by Microchip Technology Incorporated
13 (the “Company”) for its PIC® Microcontroller is intended and
14 supplied to you, the Company’s customer, for use solely and
15 exclusively on Microchip PIC Microcontroller products. The
16 software is owned by the Company and/or its supplier, and is
17 protected under applicable copyright laws. All rights are reserved.
18 Any use in violation of the foregoing restrictions may subject the
19 user to criminal sanctions under applicable laws, as well as to
20 civil liability for the breach of the terms and conditions of this
21 license.
22  
23 THIS SOFTWARE IS PROVIDED IN AN “AS IS” CONDITION. NO WARRANTIES,
24 WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING, BUT NOT LIMITED
25 TO, IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
26 PARTICULAR PURPOSE APPLY TO THIS SOFTWARE. THE COMPANY SHALL NOT,
27 IN ANY CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL OR
28 CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER.
29  
30 ********************************************************************
31 File Description:
32  
33 Change History:
34 Rev Description
35 ---- -----------------------------------------
36 1.0 Initial release
37 1.01 No Change
38 ********************************************************************/
39  
40 // PPS INPUT MACROS
41 #define INT1_FUNC _INT1R
42 #define INT2_FUNC _INT2R
43 #define INT3_FUNC _INT3R
44 #define INT4_FUNC _INT4R
45  
46 #define IC1_FUNC _IC1R
47 #define IC2_FUNC _IC2R
48 #define IC3_FUNC _IC3R
49 #define IC4_FUNC _IC4R
50 #define IC5_FUNC _IC5R
51 #define IC6_FUNC _IC6R
52 #define IC7_FUNC _IC7R
53 #define IC8_FUNC _IC8R
54 #define IC9_FUNC _IC9R
55  
56 #define OCFA_FUNC _OCFAR
57 #define OCFB_FUNC _OCFBR
58  
59 #define SCK1IN_FUNC _SCK1R
60 #define SDI1_FUNC _SDI1R
61 #define SS1IN_FUNC _SS1R
62 #define SCK2IN_FUNC _SCK2R
63 #define SDI2_FUNC _SDI2R
64 #define SS2IN_FUNC _SS2R
65 #define SCK3IN_FUNC _SCK3R
66 #define SDI3_FUNC _SDI3R
67 #define SS3IN_FUNC _SS3R
68  
69 #define T1CK_FUNC _T1CKR
70 #define T2CK_FUNC _T2CKR
71 #define T3CK_FUNC _T3CKR
72 #define T4CK_FUNC _T4CKR
73 #define T5CK_FUNC _T5CKR
74  
75 #define T1GATE_FUNC _T1CKR
76 #define T2GATE_FUNC _T2CKR
77 #define T3GATE_FUNC _T3CKR
78 #define T4GATE_FUNC _T4CKR
79 #define T5GATE_FUNC _T5CKR
80  
81 #define U1CTS_FUNC _U1CTSR
82 #define U1RX_FUNC _U1RXR
83 #define U2CTS_FUNC _U2CTSR
84 #define U2RX_FUNC _U2RXR
85 #define U3CTS_FUNC _U3CTSR
86 #define U3RX_FUNC _U3RXR
87 #define U4CTS_FUNC _U4CTSR
88 #define U4RX_FUNC _U4RXR
89  
90  
91  
92 // PPS OUTPUT MACROS
93 #define C1OUT_FUNC 1
94 #define C2OUT_FUNC 2
95 #define U1TX_FUNC 3
96 #define U1RTS_FUNC 4
97 #define U2TX_FUNC 5
98 #define U2RTS_FUNC 6
99 #define SD01_FUNC 7
100 #define SCK1OUT_FUNC 8
101 #define SS1OUT_FUNC 9
102 #define SDO2_FUNC 10
103 #define SCK2OUT_FUNC 11
104 #define SS2OUT_FUNC 12
105 #define OC1_FUNC 18
106 #define OC2_FUNC 19
107 #define OC3_FUNC 20
108 #define OC4_FUNC 21
109 #define OC5_FUNC 22
110 #define OC6_FUNC 23
111 #define OC7_FUNC 24
112 #define OC8_FUNC 25
113 #define OC9_FUNC 35
114 #define U3TX_FUNC 28
115 #define U3RTS_FUNC 29
116 #define U4TX_FUNC 30
117 #define U4RTS_FUNC 31
118 #define SDO3_FUNC 32
119 #define SCK3OUT_FUNC 33
120 #define SS3OUT_FUNC 34
121  
122  
123 #define RP0 0 //RB0
124 #define RP1 1 //RB1
125 #define RP2 2 //RD8
126 #define RP3 3 //RD10
127 #define RP4 4 //RD9
128 #define RP5 5 //RD15
129 #define RP6 6 //RB6
130 #define RP7 7 //RB7
131 #define RP8 8 //RB8
132 #define RP9 9 //RB9
133 #define RP10 10 //RF4
134 #define RP11 11 //RD0
135 #define RP12 12 //RD11
136 #define RP13 13 //RB2
137 #define RP14 14 //RB14
138 #define RP15 15 //RF8
139 #define RP16 16 //RF3
140 #define RP17 17 //RF5
141 #define RP18 18 //RB5
142 #define RP19 19 //RG8
143 #define RP20 20 //RD5
144 #define RP21 21 //RG6
145 #define RP22 22 //RD3
146 #define RP23 23 //RD2
147 #define RP24 24 //RD1
148 #define RP25 25 //RD4
149 #define RP26 26 //RG7
150 #define RP27 27 //RG9
151 #define RP28 28 //RB4
152 #define RP29 29 //RB15
153 #define RP30 30 //RF2
154 #define RP31 31 //RF13
155  
156 //32..43 are input only
157 #define RPI32 32
158 #define RPI33 33
159 #define RPI34 34
160 #define RPI35 35
161 #define RPI36 36
162 #define RPI37 37
163 #define RPI38 38
164 #define RPI39 39
165 #define RPI40 40
166 #define RPI41 41
167 #define RPI42 42
168 #define RPI43 43
169  
170  
171 #define PPSOut(pin,func) (_##pin##R = func)
172 #define PPSIn(pin,func) (func = pin)
{BLAME END}
{FOOTER START}

Powered by WebSVN v2.8.3