]> rtime.felk.cvut.cz Git - arc.git/blobdiff - arch/ppc/mpc55xx/drivers/Mcu.c
Merged with dem-dev
[arc.git] / arch / ppc / mpc55xx / drivers / Mcu.c
index 900fd5a1bcc69f70fe2bdd46321a57e6cabf08e1..77a654ba675a4adc8acef0a08ae9b7ea6f7c3319 100644 (file)
 #include <string.h>\r
 #include "Std_Types.h"\r
 #include "Mcu.h"\r
-#include "Det.h"\r
+#include "Det.h"
+#if defined(USE_DEM)
+#include "Dem.h"
+#endif
 #include "mpc55xx.h"\r
 #include "Cpu.h"\r
 #include "Ramlog.h"\r
@@ -101,11 +104,8 @@ Mcu_GlobalType Mcu_Global =
 //-------------------------------------------------------------------\r
 \r
 static void Mcu_LossOfLock( void  ) {\r
-#if ( MCU_DEV_ERROR_DETECT == STD_ON )\r
-       /* Should report MCU_E_CLOCK_FAILURE with DEM here.... but\r
-        * we do the next best thing. Report with Det with API = 0\r
-        */\r
-       Det_ReportError(MODULE_ID_MCU,0,0,MCU_E_PLL_NOT_LOCKED);\r
+#if defined(USE_DEM)
+       Dem_ReportErrorStatus(MCU_E_CLOCK_FAILURE, DEM_EVENT_STATUS_FAILED);
 #endif\r
 \r
        Mcu_Global.stats.lossOfLockCnt++;\r