aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Embedded_SW/Embedded/Common/Utilities/Utils.c
diff options
context:
space:
mode:
authorShlomo Hecht <shlomo@twine-s.com>2019-07-30 10:20:11 +0300
committerShlomo Hecht <shlomo@twine-s.com>2019-07-30 10:20:11 +0300
commit1f69782f90dfa3d48e6b081fd2d25f69cf929fbb (patch)
treef342fa64a6384115ffafa58aee10f7604d197d04 /Software/Embedded_SW/Embedded/Common/Utilities/Utils.c
parent90178d6bab9bfd40426bbcaac8368c56a6cccc43 (diff)
downloadTango-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/Utils.c')
-rw-r--r--Software/Embedded_SW/Embedded/Common/Utilities/Utils.c8
1 files changed, 7 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;