diff options
| author | Shlomo Hecht <shlomo@twine-s.com> | 2019-07-30 10:20:11 +0300 |
|---|---|---|
| committer | Shlomo Hecht <shlomo@twine-s.com> | 2019-07-30 10:20:11 +0300 |
| commit | 1f69782f90dfa3d48e6b081fd2d25f69cf929fbb (patch) | |
| tree | f342fa64a6384115ffafa58aee10f7604d197d04 /Software/Embedded_SW/Embedded/Common/Utilities | |
| parent | 90178d6bab9bfd40426bbcaac8368c56a6cccc43 (diff) | |
| download | Tango-1f69782f90dfa3d48e6b081fd2d25f69cf929fbb.tar.gz Tango-1f69782f90dfa3d48e6b081fd2d25f69cf929fbb.zip | |
Version 1.4.2.8 improved loading, cleaning introduced, time handled
Diffstat (limited to 'Software/Embedded_SW/Embedded/Common/Utilities')
| -rw-r--r-- | Software/Embedded_SW/Embedded/Common/Utilities/Utils.c | 8 | ||||
| -rw-r--r-- | Software/Embedded_SW/Embedded/Common/Utilities/Utils.h | 1 |
2 files changed, 8 insertions, 1 deletions
diff --git a/Software/Embedded_SW/Embedded/Common/Utilities/Utils.c b/Software/Embedded_SW/Embedded/Common/Utilities/Utils.c index e22291963..d1143ada2 100644 --- a/Software/Embedded_SW/Embedded/Common/Utilities/Utils.c +++ b/Software/Embedded_SW/Embedded/Common/Utilities/Utils.c @@ -12,6 +12,7 @@ //#include <driverlib/systick.h> #include "driverlib/hibernate.h" #include <driverlib/Watchdog.h> +#include <ti/sysbios/hal/Seconds.h> //***************************************************************************** @@ -138,9 +139,14 @@ void utilsInit(uint32_t ui32SysClock) // Configure the hibernate module counter to RTC counter mode. HibernateCounterMode(HIBERNATE_COUNTER_RTC); +#define STARTTIME 1564403262 + Seconds_set(STARTTIME); } - +void utilsUpdateDateTime(uint32_t StartTime) +{ + Seconds_set(StartTime); +} uint32_t UsersysTickGet (void) { uint32_t tick = 0; diff --git a/Software/Embedded_SW/Embedded/Common/Utilities/Utils.h b/Software/Embedded_SW/Embedded/Common/Utilities/Utils.h index 37eade5c4..b54453e2c 100644 --- a/Software/Embedded_SW/Embedded/Common/Utilities/Utils.h +++ b/Software/Embedded_SW/Embedded/Common/Utilities/Utils.h @@ -22,6 +22,7 @@ typedef enum void utilsInit(uint32_t ui32SysClock); +void utilsUpdateDateTime(uint32_t StartTime); uint32_t UsersysTickGet (void); bool DanserCheckPosition(uint16_t position , Danser_t danser, bool test); void InitWatchdog(uint32_t clock); |
