]> rtime.felk.cvut.cz Git - arc.git/blobdiff - system/EcuM/EcuM_Main.c
EcuM: more fixes
[arc.git] / system / EcuM / EcuM_Main.c
index 3fbed82c590d47977d2167ab9e452b8f734ea94e..4cfdf2465898f850c3d696a94e5465ea1ac9f5c2 100644 (file)
@@ -104,7 +104,7 @@ void EcuM_enter_run_mode(void){
 \r
 #if defined(USE_WDGM)\r
        /* This seems strange, should be in FW instead */\r
-       WdgM_SetMode(TODO_MODE);\r
+       WdgM_SetMode(internal_data.config->EcuMWdgMConfig->EcuMWdgMRunMode);\r
 #endif\r
 \r
 #if defined(USE_COMM)\r
@@ -269,7 +269,7 @@ static inline void in_state_appRun(void){
                EcuM_OnExitRun();       /** @req EcuM2865 */\r
 \r
 #if defined(USE_WDGM)\r
-               WdgM_SetMode(FIXME_MODE);\r
+               // This is APPRUN not RUN.. so WdgM_SetMode() should not be called?\r
 #endif\r
 \r
 #if defined(USE_RTE) && defined(CFG_ECUM_USE_SERVICE_COMPONENT)\r
@@ -382,7 +382,7 @@ void EcuM_MainFunction(void){
                        Mcu_SetMode(MCU_MODE_NORMAL);\r
 \r
 #if defined(USE_WDGM)\r
-                       WdgM_SetMode(FIXME_MODE);\r
+                       WdgM_SetMode(internal_data.config->EcuMWdgMConfig->EcuMWdgMWakeupMode);\r
 #endif\r
 \r
                        wMask = EcuM_GetPendingWakeupEvents();\r