From ee0b40b93b5f797a830ebbd3cd735ca85ca15579 Mon Sep 17 00:00:00 2001 From: barthess Date: Tue, 20 Sep 2011 07:25:39 +0000 Subject: EXT wakeup test updates. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@3358 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- testhal/STM32F1xx/EXT_WAKEUP/main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'testhal/STM32F1xx/EXT_WAKEUP/main.c') diff --git a/testhal/STM32F1xx/EXT_WAKEUP/main.c b/testhal/STM32F1xx/EXT_WAKEUP/main.c index f12a54207..3d6464ee7 100644 --- a/testhal/STM32F1xx/EXT_WAKEUP/main.c +++ b/testhal/STM32F1xx/EXT_WAKEUP/main.c @@ -102,7 +102,8 @@ static void cmd_sleep(BaseChannel *chp, int argc, char *argv[]){ extChannelEnable(&EXTD1, 10); chThdSleepMilliseconds(5); - PWR->CR |= (PWR_CR_CSBF | PWR_CR_CWUF); + PWR->CR |= (PWR_CR_LPDS | PWR_CR_CSBF | PWR_CR_CWUF); + PWR->CR &= ~PWR_CR_PDDS; // explicit clear PDDS, just to be safe SCB->SCR |= SCB_SCR_SLEEPDEEP_Msk; __WFI(); } -- cgit v1.2.3