summaryrefslogtreecommitdiff
path: root/src/arch/msp430fr5969lp/arch.cc
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2018-07-17 09:48:54 +0200
committerDaniel Friesel <derf@finalrewind.org>2018-07-17 09:48:54 +0200
commit658ca283452c5944c55d9c751868eef6c6f34138 (patch)
tree153eeeeadd3bed45bbc2ba696c1d4075c212f206 /src/arch/msp430fr5969lp/arch.cc
parentc8482531fbaeb75aaa58d7273853d0d1b0914713 (diff)
MSP430: Some idle waiting
Diffstat (limited to 'src/arch/msp430fr5969lp/arch.cc')
-rw-r--r--src/arch/msp430fr5969lp/arch.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/arch/msp430fr5969lp/arch.cc b/src/arch/msp430fr5969lp/arch.cc
index 3016842..9ea49b7 100644
--- a/src/arch/msp430fr5969lp/arch.cc
+++ b/src/arch/msp430fr5969lp/arch.cc
@@ -79,6 +79,7 @@ void Arch::idle_loop(void)
asm volatile("nop");
__bis_SR_register(LPM2_bits);
asm volatile("nop");
+ __dint();
#if defined(WITH_LOOP)
if (run_loop) {
loop();
@@ -97,6 +98,7 @@ void Arch::idle(void)
asm volatile("nop");
__bis_SR_register(LPM2_bits);
asm volatile("nop");
+ __dint();
#ifdef WITH_WAKEUP
wakeup();
#endif