]> git.sur5r.net Git - freertos/commitdiff
Update ISR functions to be compliant with low power mode operation.
authorrichardbarry <richardbarry@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>
Sun, 19 Oct 2008 18:10:52 +0000 (18:10 +0000)
committerrichardbarry <richardbarry@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>
Sun, 19 Oct 2008 18:10:52 +0000 (18:10 +0000)
git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@503 1d2547de-c912-0410-9cb9-b8ca96c0e9e2

Demo/msp430_CrossWorks/serial/serial.c

index e5130f26c88769119d908d052752aea638d24049..175d591c0a9565aab4791110d34eff54aa0d3cd3 100644 (file)
@@ -225,6 +225,8 @@ signed portBASE_TYPE xReturn;
                        interrupted. */\r
                        taskYIELD();\r
                }\r
+\r
+        __bic_SR_register_on_exit( SCG1 + SCG0 + OSCOFF + CPUOFF );\r
        }\r
        /*-----------------------------------------------------------*/\r
        \r
@@ -249,6 +251,8 @@ signed portBASE_TYPE xReturn;
                        /* There were no other characters to transmit. */\r
                        sTHREEmpty = pdTRUE;\r
                }\r
+\r
+        __bic_SR_register_on_exit( SCG1 + SCG0 + OSCOFF + CPUOFF );\r
        }\r
 \r
 #endif\r