diff options
author | barthess <barthess@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2011-09-20 07:25:39 +0000 |
---|---|---|
committer | barthess <barthess@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2011-09-20 07:25:39 +0000 |
commit | ee0b40b93b5f797a830ebbd3cd735ca85ca15579 (patch) | |
tree | f77993431ae7b65ee2e64c57f35c33d895d92f78 /testhal/STM32F1xx | |
parent | 3035afea9de7fbf89c5c3852abeaf47780df4613 (diff) | |
download | ChibiOS-ee0b40b93b5f797a830ebbd3cd735ca85ca15579.tar.gz ChibiOS-ee0b40b93b5f797a830ebbd3cd735ca85ca15579.tar.bz2 ChibiOS-ee0b40b93b5f797a830ebbd3cd735ca85ca15579.zip |
EXT wakeup test updates.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@3358 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'testhal/STM32F1xx')
-rw-r--r-- | testhal/STM32F1xx/EXT_WAKEUP/halconf.h | 2 | ||||
-rw-r--r-- | testhal/STM32F1xx/EXT_WAKEUP/main.c | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/testhal/STM32F1xx/EXT_WAKEUP/halconf.h b/testhal/STM32F1xx/EXT_WAKEUP/halconf.h index ca1d81b24..eb7142f50 100644 --- a/testhal/STM32F1xx/EXT_WAKEUP/halconf.h +++ b/testhal/STM32F1xx/EXT_WAKEUP/halconf.h @@ -289,7 +289,7 @@ * default configuration.
*/
#if !defined(SERIAL_DEFAULT_BITRATE) || defined(__DOXYGEN__)
-#define SERIAL_DEFAULT_BITRATE 38400
+#define SERIAL_DEFAULT_BITRATE 115200
#endif
/**
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();
}
|