From 442d4f526d7f24f015ae7266124785de92edd2e6 Mon Sep 17 00:00:00 2001 From: richardbarry Date: Sun, 19 Oct 2008 18:08:53 +0000 Subject: [PATCH] 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 --- Source/portable/Rowley/MSP430F449/Port2/portext.asm | 4 ++++ 1 file changed, 4 insertions(+) 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 -- 2.39.5