1 /***************************************************************************
2 * Copyright (C) 2008 by stefic *
3 * stefaj1@fel.cvut.cz *
5 * This program is free software; you can redistribute it and/or modify *
6 * it under the terms of the GNU General Public License as published by *
7 * the Free Software Foundation; either version 2 of the License, or *
8 * (at your option) any later version. *
10 * This program is distributed in the hope that it will be useful, *
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
13 * GNU General Public License for more details. *
15 * You should have received a copy of the GNU General Public License *
16 * along with this program; if not, write to the *
17 * Free Software Foundation, Inc., *
18 * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
19 ***************************************************************************/
30 #include <system_def.h>
33 //INCLUDE IN CURRENT DIRECTORY
34 #include "hydroponie.h"
37 mstime_t ltime, l2time;
40 led1_time = current_time();
41 led2_time = current_time();
46 ltime = current_time();
48 ctime = current_time();
49 if((ctime-ltime) > 3000){
57 if (ul_dyac->ul_dysa != 0) break;
60 ltime = current_time();
61 l2time = current_time();
62 l3time = current_time();
66 ctime = current_time();
70 if((ctime-ltime) > 1000){
72 ltime = current_time();
75 if((ctime-ltime) > 1000){
77 ltime = current_time();
79 if((ctime-l2time) > 1000*oi_period){
81 l2time = current_time();
95 int main(int argc, char *argv[]) {