]> rtime.felk.cvut.cz Git - arc.git/blobdiff - system/EcuM/EcuM.c
Merge with c40862b2536786becf4172ec2b16eab166952161
[arc.git] / system / EcuM / EcuM.c
index 77a32b1e907b1acc39a1e61e56d61a206d623c11..935eebc29e7a4946976231bc00cc00676c492b32 100644 (file)
  * for more details.\r
  * -------------------------------- Arctic Core ------------------------------*/\r
 \r
-\r
-\r
-\r
-\r
-\r
-\r
-\r
 #include "EcuM.h"\r
 #include "Modules.h"\r
 #include "string.h"\r
@@ -87,7 +80,7 @@ void EcuM_StartupTwo()
 \r
 #if    (ECUM_INCLUDE_NVRAM_MGR == STD_ON)\r
        // Start timer to wait for NVM job to complete\r
-       timer = Os_SysTickGetTimeElapsed();\r
+       timer = Os_SysTickGetValue();\r
 #endif\r
 \r
        // Prepare the system to startup RTE\r
@@ -98,7 +91,7 @@ void EcuM_StartupTwo()
 \r
 #if    (ECUM_INCLUDE_NVRAM_MGR == STD_ON)\r
        // Wait for the NVM job to terminate\r
-       while(Os_SysTickGetTimeElapsed()-timer < internal_data.config.EcuMNvramReadAllTimeout)\r
+       while(Os_SysTickGetValue()-timer < internal_data.config.EcuMNvramReadAllTimeout)\r
        {\r
                //TODO\r
        }\r