From c56e9ea70a9a8e79f00fb70fb4278b9bd7bf3ae7 Mon Sep 17 00:00:00 2001 From: gdisirio Date: Fri, 6 Jan 2012 09:20:21 +0000 Subject: Removed instances of // git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@3746 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- testhal/STM32F1xx/EXT_WAKEUP/main.c | 16 ++++++++-------- testhal/STM32F4xx/PVD/mcuconf.h | 6 +++--- 2 files changed, 11 insertions(+), 11 deletions(-) (limited to 'testhal') 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); diff --git a/testhal/STM32F4xx/PVD/mcuconf.h b/testhal/STM32F4xx/PVD/mcuconf.h index ff8f8a1fa..29cf76a4c 100644 --- a/testhal/STM32F4xx/PVD/mcuconf.h +++ b/testhal/STM32F4xx/PVD/mcuconf.h @@ -99,12 +99,12 @@ #define STM32_EXT_EXTI5_9_IRQ_PRIORITY 6 #define STM32_EXT_EXTI10_15_IRQ_PRIORITY 6 #define STM32_EXT_EXTI16_IRQ_PRIORITY 6 -#define STM32_EXT_EXTI17_IRQ_PRIORITY 15 // RTC alarm +#define STM32_EXT_EXTI17_IRQ_PRIORITY 15 #define STM32_EXT_EXTI18_IRQ_PRIORITY 6 #define STM32_EXT_EXTI19_IRQ_PRIORITY 6 #define STM32_EXT_EXTI20_IRQ_PRIORITY 6 -#define STM32_EXT_EXTI21_IRQ_PRIORITY 15 // RTC tamper-timestamp -#define STM32_EXT_EXTI22_IRQ_PRIORITY 15 // RTC wakeup +#define STM32_EXT_EXTI21_IRQ_PRIORITY 15 +#define STM32_EXT_EXTI22_IRQ_PRIORITY 15 /* * GPT driver system settings. -- cgit v1.2.3