aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Embedded_SW/Embedded/Main.c
diff options
context:
space:
mode:
authorShlomo Hecht <shlomo@twine-s.com>2020-12-20 11:32:47 +0200
committerShlomo Hecht <shlomo@twine-s.com>2020-12-20 11:32:47 +0200
commit295cc6981e5fca0f958c7aef06ee9cf8f25a762c (patch)
tree865e7e83992953d3432060c5d9a5824e63fd32ea /Software/Embedded_SW/Embedded/Main.c
parent631fd1917ab3809b4b8d7e0066c49572f76688da (diff)
downloadTango-295cc6981e5fca0f958c7aef06ee9cf8f25a762c.tar.gz
Tango-295cc6981e5fca0f958c7aef06ee9cf8f25a762c.zip
Version 1.6.0 mostly changes in flash and EEPROM
Diffstat (limited to 'Software/Embedded_SW/Embedded/Main.c')
-rw-r--r--Software/Embedded_SW/Embedded/Main.c19
1 files changed, 2 insertions, 17 deletions
diff --git a/Software/Embedded_SW/Embedded/Main.c b/Software/Embedded_SW/Embedded/Main.c
index c1eeff837..541fff0a7 100644
--- a/Software/Embedded_SW/Embedded/Main.c
+++ b/Software/Embedded_SW/Embedded/Main.c
@@ -137,21 +137,6 @@ Void MyswitchFxn(Task_Handle prev, Task_Handle next)
PrevTask = prev;
NextTask = next;
}
-void updateresetreasonineeprom(int i)
-{
-#define Head_Address 40
-#define Max_Address 100
- uint32_t Head;
- uint32_t RESC = SysCtlResetCauseGet();
-
- EEPROMRead(&Head,Head_Address*4, 4);
- if (Head>=Max_Address) Head=0;
- Head++;
- RESC+=(i*0x1000);
- EEPROMProgram(&Head, Head_Address*4, 4);
- EEPROMProgram(&RESC, (Head_Address+Head)*4, 4);
-
-}
/* ======== errHook ======== */
Void errHook(Error_Block *eb)
{
@@ -161,7 +146,7 @@ Void errHook(Error_Block *eb)
//char File[50] = "";*/
char message[300];
int len;
- updateresetreasonineeprom(InitFailures);
+ MCU_E2PromUpdateResetReason(InitFailures);
//STATUS_GREEN_LED_OFF;
ACTIVITY_GREEN_LED_OFF;
@@ -270,7 +255,7 @@ int main(void)
uint32_t Data,i;
MCU_E2PromInit();
- updateresetreasonineeprom(0);
+ MCU_E2PromUpdateResetReason(0);
#endif
#ifdef EVALUATION_BOARD