From ac93ea2d1820a8045f1a5ac18b22baaa7cd9e340 Mon Sep 17 00:00:00 2001 From: Rob Clark Date: Wed, 1 Feb 2012 18:34:35 -0600 Subject: [PATCH] disable deepsleep until we have ability to wake again --- src/ti/pm/IpcPower.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/ti/pm/IpcPower.c b/src/ti/pm/IpcPower.c index d7d7082..ec6827b 100644 --- a/src/ti/pm/IpcPower.c +++ b/src/ti/pm/IpcPower.c @@ -140,7 +140,9 @@ Void IpcPower_suspend() */ Void IpcPower_idle() { - REG32(M3_SCR_REG) |= 1 << DEEPSLEEP_BIT; +// TODO enable DEEPSLEEP bit only once we are using external GPT for OS tick, +// otherwise the M3 can fall asleep and never wake up +// REG32(M3_SCR_REG) |= 1 << DEEPSLEEP_BIT; REG32(WUGEN_MEVT1) |= WUGEN_INT_MASK; asm(" wfi"); }