]> rtime.felk.cvut.cz Git - arc.git/commitdiff
Mcu: Fixed hang when running the ISS
authormahi <devnull@localhost>
Fri, 14 Sep 2012 06:02:39 +0000 (08:02 +0200)
committermahi <devnull@localhost>
Fri, 14 Sep 2012 06:02:39 +0000 (08:02 +0200)
arch/ppc/mpc55xx/drivers/Mcu.c

index 751ee719d3ec23da831aae1bcfba46bc0882daf2..12c8a06c0569e873df4fa48f15904cc9f57993d5 100644 (file)
@@ -383,7 +383,9 @@ Std_ReturnType Mcu_InitClock(const Mcu_ClockType ClockSetting)
 \r
     // TODO: find out if the 5554 really works like the 5516 here\r
     // All three (16, 54, 67) used to run the same code here though, so i'm sticking it with 5516\r
-#if defined(CFG_MPC5516) || defined(CFG_MPC5554) || defined(CFG_MPC5668)\r
+#if defined(CFG_SIMULATOR)\r
+    return E_OK;\r
+#elif defined(CFG_MPC5516) || defined(CFG_MPC5554) || defined(CFG_MPC5668)\r
     /* 5516clock info:\r
      * Fsys - System frequency ( CPU + all periperals? )\r
      *\r