diff options
author | barthess <barthess@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2011-09-20 16:25:47 +0000 |
---|---|---|
committer | barthess <barthess@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2011-09-20 16:25:47 +0000 |
commit | bd339dfa99310b372fc2699b79c700bbec7a0543 (patch) | |
tree | dc4718c83a25006d88d1166d94b7b0c28ca3468b | |
parent | 5a3a608ad919591b88af842b0ce15f4e22790710 (diff) | |
download | ChibiOS-bd339dfa99310b372fc2699b79c700bbec7a0543.tar.gz ChibiOS-bd339dfa99310b372fc2699b79c700bbec7a0543.tar.bz2 ChibiOS-bd339dfa99310b372fc2699b79c700bbec7a0543.zip |
EXT wakeup test. Slow down serial baudrate.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@3361 35acf78f-673a-0410-8e92-d51de3d6d3f4
-rw-r--r-- | testhal/STM32F1xx/EXT_WAKEUP/Makefile | 2 | ||||
-rw-r--r-- | testhal/STM32F1xx/EXT_WAKEUP/halconf.h | 2 | ||||
-rw-r--r-- | testhal/STM32F1xx/EXT_WAKEUP/main.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/testhal/STM32F1xx/EXT_WAKEUP/Makefile b/testhal/STM32F1xx/EXT_WAKEUP/Makefile index 5f91baee0..96cfa2e2e 100644 --- a/testhal/STM32F1xx/EXT_WAKEUP/Makefile +++ b/testhal/STM32F1xx/EXT_WAKEUP/Makefile @@ -5,7 +5,7 @@ # Compiler options here.
ifeq ($(USE_OPT),)
- USE_OPT = -O2 -ggdb -fomit-frame-pointer -falign-functions=16
+ USE_OPT = -O0 -ggdb -fomit-frame-pointer -falign-functions=16
endif
# C++ specific options here (added to USE_OPT).
diff --git a/testhal/STM32F1xx/EXT_WAKEUP/halconf.h b/testhal/STM32F1xx/EXT_WAKEUP/halconf.h index eb7142f50..ad81d2c24 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 115200
+#define SERIAL_DEFAULT_BITRATE 57600
#endif
/**
diff --git a/testhal/STM32F1xx/EXT_WAKEUP/main.c b/testhal/STM32F1xx/EXT_WAKEUP/main.c index 3d6464ee7..522edde72 100644 --- a/testhal/STM32F1xx/EXT_WAKEUP/main.c +++ b/testhal/STM32F1xx/EXT_WAKEUP/main.c @@ -100,7 +100,6 @@ static void cmd_sleep(BaseChannel *chp, int argc, char *argv[]){ chThdSleepMilliseconds(200); // time to print out message in terminal
extChannelEnable(&EXTD1, 10);
- chThdSleepMilliseconds(5);
PWR->CR |= (PWR_CR_LPDS | PWR_CR_CSBF | PWR_CR_CWUF);
PWR->CR &= ~PWR_CR_PDDS; // explicit clear PDDS, just to be safe
@@ -160,5 +159,6 @@ int main(void) { while (TRUE) {
chThdSleepMilliseconds(100);
palTogglePad(IOPORT3, GPIOC_LED);
+ chThdExit(0);
}
}
|