From 518d5e538a3fc33561bb83c095f656ceab3324b5 Mon Sep 17 00:00:00 2001 From: Richard Barry Date: Sun, 19 Oct 2008 18:08:53 +0000 Subject: [PATCH] Update to allow low power mode to be used with the RTOS. --- 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