]> rtime.felk.cvut.cz Git - arc.git/commitdiff
Mcu, added errors if sleep mode is not supported.
authorhebe <devnull@localhost>
Thu, 13 Sep 2012 08:22:45 +0000 (10:22 +0200)
committerhebe <devnull@localhost>
Thu, 13 Sep 2012 08:22:45 +0000 (10:22 +0200)
arch/ppc/mpc55xx/drivers/Mcu.c
arch/ppc/mpc55xx/drivers/Mcu_Sleep.sx

index 178edfbfba7fa349da7dea51e8c35c738986b5dd..751ee719d3ec23da831aae1bcfba46bc0882daf2 100644 (file)
@@ -730,7 +730,8 @@ static void enterLowPower (Mcu_ModeType mcuMode )
 \r
     /* Clear sleep flags to allow pads to operate */\r
        CRP.PSCR.B.SLEEPF = 0x1;\r
-#else\r
+\r
+#elif defined(CFG_MPC5516)\r
        uint32 timeout;\r
        /* Set the sleep bit; following a WAIT instruction, the device will go to sleep */\r
        CRP.PSCR.B.SLEEP = 1;\r
@@ -771,7 +772,9 @@ static void enterLowPower (Mcu_ModeType mcuMode )
 \r
     /* Clear sleep flags to allow pads to operate */\r
     CRP.PSCR.B.SLEEPF = 0x1;\r
-\r
+#else\r
+       /* NOT SUPPORTED */\r
+       (void) McuMode;\r
 #endif\r
 }\r
 \r
index 4b2532d5707b020851b589a52189dd1b74e00434..9f6d4919b6c8cb3e21d200997164ea6614b6ab45 100644 (file)
@@ -14,7 +14,7 @@
 #if defined(CFG_MPC5516) || defined(CFG_MPC5668)\r
 #define CRP_RECPTR             0xfffec058\r
 #else\r
-#error\r
+#error No support for this MCU\r
 #endif\r
 \r
        .global McuE_EnterLowPower\r