thermferm/thermferm.h

changeset 106
1bd9a16f5061
parent 104
5e538c4e1ecb
child 132
8bd209d1c020
equal deleted inserted replaced
105:a5a964148e34 106:1bd9a16f5061
161 units_list *units; /* Fermenter units */ 161 units_list *units; /* Fermenter units */
162 profiles_list *profiles; /* Ferment profiles */ 162 profiles_list *profiles; /* Ferment profiles */
163 } sys_config; 163 } sys_config;
164 164
165 165
166 void killconfig(void);
167 int rdconfig(void);
168 int wrconfig(void);
169
170
171 /* lock.c */
172 int lockprog(char *);
173 void ulockprog(char *);
174
175
176 /* xutil.c */
177 char *xmalloc(size_t);
178 char *xstrcpy(char *);
179 char *xstrcat(char *, char *);
180
181
182 /* futil.c */
183 int mkdirs(char *, mode_t);
184
185
186 #ifdef HAVE_WIRINGPI_H
187
188 /* lcd-pcf8574.c */
189 // Defines for the pcf8574 Pi LCD interface board
190 #define AF_BASE 100
191
192 #define AF_RS (AF_BASE + 0)
193 #define AF_RW (AF_BASE + 1)
194 #define AF_E (AF_BASE + 2)
195 #define AF_BACKLIGHT (AF_BASE + 3)
196 #define AF_DB4 (AF_BASE + 4)
197 #define AF_DB5 (AF_BASE + 5)
198 #define AF_DB6 (AF_BASE + 6)
199 #define AF_DB7 (AF_BASE + 7)
200
201 void setBacklight (int);
202 int initLCD (int, int);
203 void mb_lcdPutchar(const int, unsigned char);
204 void mb_lcdPuts(const int, const char *);
205 void mb_lcdClear(const int);
206 166
207 #endif 167 #endif
208
209 /* logger.c */
210 void logger(char *, char *);
211
212 #ifdef HAVE_WIRINGPI_H
213 PI_THREAD (my_sensors_loop);
214 #else
215 void *my_sensors_loop(void *);
216 #endif
217
218 /* server.c */
219 #ifdef HAVE_WIRINGPI_H
220 PI_THREAD (my_server_loop);
221 #else
222 void *my_server_loop(void *);
223 #endif
224
225 #ifdef HAVE_WIRINGPI_H
226 PI_THREAD (my_units_loop);
227 #else
228 void *my_units_loop(void *);
229 #endif
230
231
232 #endif
233

mercurial