1 | /*********************************************************************
|
2 | * General Procedures Libary Source Code
|
3 | *********************************************************************
|
4 | * FileName: GenProcs.c
|
5 | * Dependencies: GenProcs.h
|
6 | * Processor: PIC18F4685
|
7 | * Complier: Microchip C18
|
8 | *
|
9 | *
|
10 | * Author Date Comment
|
11 | *~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
12 | * Stephan Krause 17/8/12 Version 1.0 - Initial Release
|
13 | *********************************************************************/
|
14 |
|
15 |
|
16 | #ifndef GEN_PROCS_H
|
17 | #define GEN_PROCS_H
|
18 |
|
19 |
|
20 | #include <p18f4685.h>
|
21 | #include <timers.h>
|
22 | #include <pwm.h>
|
23 | #include <i2c.h>
|
24 | #include <delays.h>
|
25 | #include <portb.h>
|
26 |
|
27 |
|
28 | #include "GlobalDefinitions.h"
|
29 | #include "MyDelays.h"
|
30 | #include "PWM.h"
|
31 | #include "ADC.h"
|
32 | #include "Interrupts.h"
|
33 | #include "gLCD.h"
|
34 |
|
35 |
|
36 | /*********************************************************************
|
37 | * Function:
|
38 | *
|
39 | * Overview:
|
40 | *
|
41 | *
|
42 | * PreCondition: None
|
43 | *
|
44 | * Input: None
|
45 | *
|
46 | * Output: None
|
47 | *
|
48 | * Side Effects:
|
49 | ********************************************************************/
|
50 | void Init(void);
|
51 |
|
52 | /*********************************************************************
|
53 | * Function:
|
54 | *
|
55 | * Overview:
|
56 | *
|
57 | *
|
58 | * PreCondition: None
|
59 | *
|
60 | * Input: None
|
61 | *
|
62 | * Output: None
|
63 | *
|
64 | * Side Effects:
|
65 | ********************************************************************/
|
66 | void InitOSC(void);
|
67 |
|
68 | /*********************************************************************
|
69 | * Function:
|
70 | *
|
71 | * Overview:
|
72 | *
|
73 | *
|
74 | * PreCondition: None
|
75 | *
|
76 | * Input: None
|
77 | *
|
78 | * Output: None
|
79 | *
|
80 | * Side Effects:
|
81 | ********************************************************************/
|
82 | void InitPORTA(void);
|
83 |
|
84 | /*********************************************************************
|
85 | * Function:
|
86 | *
|
87 | * Overview:
|
88 | *
|
89 | *
|
90 | * PreCondition: None
|
91 | *
|
92 | * Input: None
|
93 | *
|
94 | * Output: None
|
95 | *
|
96 | * Side Effects:
|
97 | ********************************************************************/
|
98 | void InitPORTB(void);
|
99 |
|
100 | /*********************************************************************
|
101 | * Function:
|
102 | *
|
103 | * Overview:
|
104 | *
|
105 | *
|
106 | * PreCondition: None
|
107 | *
|
108 | * Input: None
|
109 | *
|
110 | * Output: None
|
111 | *
|
112 | * Side Effects:
|
113 | ********************************************************************/
|
114 | void InitPORTC(void);
|
115 |
|
116 | /*********************************************************************
|
117 | * Function:
|
118 | *
|
119 | * Overview:
|
120 | *
|
121 | *
|
122 | * PreCondition: None
|
123 | *
|
124 | * Input: None
|
125 | *
|
126 | * Output: None
|
127 | *
|
128 | * Side Effects:
|
129 | ********************************************************************/
|
130 | void InitPORTD(void);
|
131 |
|
132 | /*********************************************************************
|
133 | * Function:
|
134 | *
|
135 | * Overview:
|
136 | *
|
137 | *
|
138 | * PreCondition: None
|
139 | *
|
140 | * Input: None
|
141 | *
|
142 | * Output: None
|
143 | *
|
144 | * Side Effects:
|
145 | ********************************************************************/
|
146 | void InitPORTE(void);
|
147 |
|
148 |
|
149 | /*********************************************************************
|
150 | * Function:
|
151 | *
|
152 | * Overview:
|
153 | *
|
154 | *
|
155 | * PreCondition: None
|
156 | *
|
157 | * Input: None
|
158 | *
|
159 | * Output: None
|
160 | *
|
161 | * Side Effects:
|
162 | ********************************************************************/
|
163 | void InitTimer(void);
|
164 |
|
165 |
|
166 | /*********************************************************************
|
167 | * Function:
|
168 | *
|
169 | * Overview:
|
170 | *
|
171 | *
|
172 | * PreCondition: None
|
173 | *
|
174 | * Input: None
|
175 | *
|
176 | * Output: None
|
177 | *
|
178 | * Side Effects:
|
179 | ********************************************************************/
|
180 | unsigned char ReadIntEEPROM(unsigned int);
|
181 |
|
182 | /*********************************************************************
|
183 | * Function:
|
184 | *
|
185 | * Overview:
|
186 | *
|
187 | *
|
188 | * PreCondition: None
|
189 | *
|
190 | * Input: None
|
191 | *
|
192 | * Output: None
|
193 | *
|
194 | * Side Effects:
|
195 | ********************************************************************/
|
196 | void WriteIntEEPROM(unsigned int, unsigned char);
|
197 |
|
198 |
|
199 |
|
200 | int GetEnc_Delta(char clear);
|
201 |
|
202 |
|
203 |
|
204 | #endif
|