EXT wakeup test updates.

git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@3358 35acf78f-673a-0410-8e92-d51de3d6d3f4
master
barthess 2011-09-20 07:25:39 +00:00
parent 3035afea9d
commit ee0b40b93b
2 changed files with 3 additions and 2 deletions

View File

@ -289,7 +289,7 @@
* default configuration.
*/
#if !defined(SERIAL_DEFAULT_BITRATE) || defined(__DOXYGEN__)
#define SERIAL_DEFAULT_BITRATE 38400
#define SERIAL_DEFAULT_BITRATE 115200
#endif
/**

View File

@ -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();
}