Open Garden  0.10.1-21
date.h
Go to the documentation of this file.
1 /* This file is part of OpenGarden
2  * Copyright (C) 2011 Enrico Rossi
3  *
4  * OpenGarden is free software: you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation, either version 3 of the License, or
7  * (at your option) any later version.
8  *
9  * OpenGarden is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with this program. If not, see <http://www.gnu.org/licenses/>.
16  */
17 
22 #ifndef DATE_H
23 #define DATE_H
24 
25 #include "debug.h"
26 #include "time.h"
27 
28 void date_set(char *cmd, struct debug_t *debug);
29 void date_setrtc(char *cmd);
30 struct tm *date_init(struct tm *tm_clock, struct debug_t *debug);
31 void date_free(struct tm *tm_clock);
32 void date_rtc(struct debug_t *debug);
33 void date(struct debug_t *debug);
34 void date_hwclock_start(void);
35 void date_hwclock_stop(void);
36 uint8_t date_timetorun(struct tm *tm_clock, struct debug_t *debug);
37 
38 #endif
Functions to activare and display (rs232) debug.
standard libc time handling functions, reduced and adapted to atmega project.
void date_hwclock_stop(void)
Definition: date.c:127
void date(struct debug_t *debug)
Definition: date.c:83
uint8_t date_timetorun(struct tm *tm_clock, struct debug_t *debug)
check if it is the time to run a program.
Definition: date.c:146
void date_rtc(struct debug_t *debug)
Definition: date.c:72
char * cmd
Definition: cmdli.h:37
Definition: debug.h:59
void date_free(struct tm *tm_clock)
Definition: date.c:115
void date_set(char *cmd, struct debug_t *debug)
Definition: date.c:32
struct tm * date_init(struct tm *tm_clock, struct debug_t *debug)
Definition: date.c:97
Definition: time.h:42
void date_setrtc(char *cmd)
Definition: date.c:63
void date_hwclock_start(void)
Definition: date.c:121