]> git.sur5r.net Git - freertos/commitdiff
Update to allow low power mode to be used with the RTOS.
authorrichardbarry <richardbarry@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>
Sun, 19 Oct 2008 18:08:53 +0000 (18:08 +0000)
committerrichardbarry <richardbarry@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>
Sun, 19 Oct 2008 18:08:53 +0000 (18:08 +0000)
git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@502 1d2547de-c912-0410-9cb9-b8ca96c0e9e2

Source/portable/Rowley/MSP430F449/Port2/portext.asm

index 0eb8b6bf32fcfcc61274b9978ec2a18453163b5b..e72039f8d09f8ed15067d4079b96ddbdcecf64f2 100644 (file)
@@ -112,6 +112,10 @@ _portRESTORE_CONTEXT::
                pop             R6              \r
                pop             R5              \r
                pop             R4              \r
+\r
+               /* Ensure any low power mode bits are cleared within the status\r
+                register about to be restored. */\r
+               bic #(SCG1+SCG0+OSCOFF+CPUOFF),0(SP)\r
                reti    \r
       \r
 \r