diff options
| author | Shai Frieder <Shai.Frieder@twine-s.com> | 2019-08-15 08:54:44 +0300 |
|---|---|---|
| committer | Shai Frieder <Shai.Frieder@twine-s.com> | 2019-08-15 08:54:44 +0300 |
| commit | 458ba46f64da0b4f555a592371ae98ad4cbf40e2 (patch) | |
| tree | 19d4e713abd89fcfcf7a65de37228c4f78868622 /Software/Embedded_SW/Embedded/Main.c | |
| parent | 5a03c18cdb77bcf2da2273d174ae47bb313e1e9f (diff) | |
| download | Tango-458ba46f64da0b4f555a592371ae98ad4cbf40e2.tar.gz Tango-458ba46f64da0b4f555a592371ae98ad4cbf40e2.zip | |
add IFS
Diffstat (limited to 'Software/Embedded_SW/Embedded/Main.c')
| -rw-r--r-- | Software/Embedded_SW/Embedded/Main.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/Software/Embedded_SW/Embedded/Main.c b/Software/Embedded_SW/Embedded/Main.c index 301d0d6c3..df89a85b3 100644 --- a/Software/Embedded_SW/Embedded/Main.c +++ b/Software/Embedded_SW/Embedded/Main.c @@ -21,6 +21,8 @@ #include "Common/utilities/idle_task.h" #include "Drivers/ADC_Sampling/ADC.h" +#include <ti/sysbios/hal/Seconds.h> +#include <time.h> #include "drivers/Heater/Heater.h" #include "drivers/Motors/Motor.h" @@ -274,7 +276,21 @@ int main(void) #ifndef EVALUATION_BOARD Init_Machine_Leds(); #endif +/* shai add time : */ +#define STARTTIME 63731536552 + time_t t; + struct tm *ltm; + char *curTime; + Seconds_set(STARTTIME); + + t = time(NULL); + ltm = localtime(&t); + curTime = asctime(ltm); + System_printf("Time(GMT): %s\n", curTime); + // https://www.epochconverter.com/seconds-days-since-y0 + +/* end time */ #ifndef EVALUATION_BOARD WHS_init(); //IDS_ModuleInit(); |
