EXT wakeup test updates.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@3358 35acf78f-673a-0410-8e92-d51de3d6d3f4master
parent
3035afea9d
commit
ee0b40b93b
|
@ -289,7 +289,7 @@
|
||||||
* default configuration.
|
* default configuration.
|
||||||
*/
|
*/
|
||||||
#if !defined(SERIAL_DEFAULT_BITRATE) || defined(__DOXYGEN__)
|
#if !defined(SERIAL_DEFAULT_BITRATE) || defined(__DOXYGEN__)
|
||||||
#define SERIAL_DEFAULT_BITRATE 38400
|
#define SERIAL_DEFAULT_BITRATE 115200
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -102,7 +102,8 @@ static void cmd_sleep(BaseChannel *chp, int argc, char *argv[]){
|
||||||
extChannelEnable(&EXTD1, 10);
|
extChannelEnable(&EXTD1, 10);
|
||||||
chThdSleepMilliseconds(5);
|
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;
|
SCB->SCR |= SCB_SCR_SLEEPDEEP_Msk;
|
||||||
__WFI();
|
__WFI();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue