From: richardbarry Date: Sun, 19 Oct 2008 18:08:53 +0000 (+0000) Subject: Update to allow low power mode to be used with the RTOS. X-Git-Tag: V5.1.2~194 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=442d4f526d7f24f015ae7266124785de92edd2e6;p=freertos Update to allow low power mode to be used with the RTOS. git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@502 1d2547de-c912-0410-9cb9-b8ca96c0e9e2 --- diff --git a/Source/portable/Rowley/MSP430F449/Port2/portext.asm b/Source/portable/Rowley/MSP430F449/Port2/portext.asm index 0eb8b6bf3..e72039f8d 100644 --- a/Source/portable/Rowley/MSP430F449/Port2/portext.asm +++ b/Source/portable/Rowley/MSP430F449/Port2/portext.asm @@ -112,6 +112,10 @@ _portRESTORE_CONTEXT:: pop R6 pop R5 pop R4 + + /* Ensure any low power mode bits are cleared within the status + register about to be restored. */ + bic #(SCG1+SCG0+OSCOFF+CPUOFF),0(SP) reti