aboutsummaryrefslogtreecommitdiffstats
path: root/testhal/STM32F1xx
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2012-01-06 09:20:21 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2012-01-06 09:20:21 +0000
commitc56e9ea70a9a8e79f00fb70fb4278b9bd7bf3ae7 (patch)
tree1cfa3cf5ddc669bc03eb517b12d6f9c5351726b9 /testhal/STM32F1xx
parent28b69f3e808c26eb4e4f84d44b93c7a6a63e53d1 (diff)
downloadChibiOS-c56e9ea70a9a8e79f00fb70fb4278b9bd7bf3ae7.tar.gz
ChibiOS-c56e9ea70a9a8e79f00fb70fb4278b9bd7bf3ae7.tar.bz2
ChibiOS-c56e9ea70a9a8e79f00fb70fb4278b9bd7bf3ae7.zip
Removed instances of //
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@3746 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'testhal/STM32F1xx')
-rw-r--r--testhal/STM32F1xx/EXT_WAKEUP/main.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/testhal/STM32F1xx/EXT_WAKEUP/main.c b/testhal/STM32F1xx/EXT_WAKEUP/main.c
index 986721fc9..047ba0053 100644
--- a/testhal/STM32F1xx/EXT_WAKEUP/main.c
+++ b/testhal/STM32F1xx/EXT_WAKEUP/main.c
@@ -93,7 +93,7 @@ static void cmd_reboot(BaseChannel *chp, int argc, char *argv[]){
return;
}
chprintf(chp, "rebooting...\r\n");
- chThdSleepMilliseconds(100); // time to print out message in terminal
+ chThdSleepMilliseconds(100);
NVIC_SystemReset();
}
@@ -105,11 +105,11 @@ static void cmd_sleep(BaseChannel *chp, int argc, char *argv[]){
}
chprintf(chp, "Going to sleep. Type any character to wake up.\r\n");
- chThdSleepMilliseconds(200); // time to print out message in terminal
+ chThdSleepMilliseconds(200);
extChannelEnable(&EXTD1, 10);
PWR->CR |= (PWR_CR_LPDS | PWR_CR_CSBF | PWR_CR_CWUF);
- PWR->CR &= ~PWR_CR_PDDS; // explicit clear PDDS, just to be safe
+ PWR->CR &= ~PWR_CR_PDDS;
SCB->SCR |= SCB_SCR_SLEEPDEEP_Msk;
__WFI();
}
@@ -146,20 +146,20 @@ int main(void) {
*/
extStart(&EXTD1, &extcfg);
- /* Activates the serial driver using the driver default configuration. */
+ /* Activates the serial driver using the driver default configuration.*/
sdStart(&SD1, NULL);
- /* Setting up ports. */
+ /* Setting up ports.*/
palSetPadMode(IOPORT1, 9, PAL_MODE_STM32_ALTERNATE_PUSHPULL);
palSetPadMode(IOPORT1, 10, PAL_MODE_INPUT);
- /* Shell manager initialization. */
+ /* Shell manager initialization.*/
shellInit();
static WORKING_AREA(waShell, 512);
shellCreateStatic(&shell_cfg1, waShell, sizeof(waShell), NORMALPRIO);
- /* Start blink indicating. */
- chThdSleepMilliseconds(2000); // timeuot to differ reboot and wake up from sleep
+ /* Start blink indicating.*/
+ chThdSleepMilliseconds(2000);
while (TRUE) {
chThdSleepMilliseconds(100);
palTogglePad(IOPORT3, GPIOC_LED);