diff options
author | barthess <barthess@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2015-07-13 20:11:27 +0000 |
---|---|---|
committer | barthess <barthess@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2015-07-13 20:11:27 +0000 |
commit | d9d6cffd9e1aaa7ef5cadd43b04c7680e1b60f92 (patch) | |
tree | 483e1c2431b6b919ee27933f508a78e8817d8091 /testhal/STM32/STM32F4xx/RTC/main.c | |
parent | 9c863974f824ef9c0e534740ebb8f8a8bdb359cd (diff) | |
download | ChibiOS-d9d6cffd9e1aaa7ef5cadd43b04c7680e1b60f92.tar.gz ChibiOS-d9d6cffd9e1aaa7ef5cadd43b04c7680e1b60f92.tar.bz2 ChibiOS-d9d6cffd9e1aaa7ef5cadd43b04c7680e1b60f92.zip |
RTC. STM32F4xx. Testhal application moved to OLIMEX_STM32_E407_REV_D board.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@8092 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'testhal/STM32/STM32F4xx/RTC/main.c')
-rw-r--r-- | testhal/STM32/STM32F4xx/RTC/main.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/testhal/STM32/STM32F4xx/RTC/main.c b/testhal/STM32/STM32F4xx/RTC/main.c index 5a5a85f19..3c029028a 100644 --- a/testhal/STM32/STM32F4xx/RTC/main.c +++ b/testhal/STM32/STM32F4xx/RTC/main.c @@ -54,7 +54,7 @@ static THD_FUNCTION(blink_thd, arg){ (void)arg;
while (true) {
chThdSleepMilliseconds(100);
- palTogglePad(GPIOB, GPIOB_LED_R);
+ palTogglePad(GPIOC, GPIOC_LED);
}
}
@@ -64,7 +64,7 @@ static THD_FUNCTION(blink_thd, arg){ static void anabiosis(void) {
chSysLock();
SCB->SCR |= SCB_SCR_SLEEPDEEP_Msk;
- PWR->CR |= (PWR_CR_PDDS | PWR_CR_LPDS | PWR_CR_CSBF | PWR_CR_CWUF);
+ PWR->CR |= (PWR_CR_PDDS | PWR_CR_LPDS | PWR_CR_CSBF | PWR_CR_CWUF);
RTC->ISR &= ~(RTC_ISR_ALRBF | RTC_ISR_ALRAF | RTC_ISR_WUTF | RTC_ISR_TAMP1F |
RTC_ISR_TSOVF | RTC_ISR_TSF);
__WFI();
@@ -243,7 +243,7 @@ static const ShellCommand commands[] = { *
*/
static const ShellConfig shell_cfg1 = {
- (BaseSequentialStream *)&SD2,
+ (BaseSequentialStream *)&SD6,
commands
};
@@ -276,7 +276,7 @@ int main(void){ rtcSTM32SetPeriodicWakeup(&RTCD1, NULL);
/* Shell initialization.*/
- sdStart(&SD2, &ser_cfg);
+ sdStart(&SD6, &ser_cfg);
shellInit();
shellCreateStatic(&shell_cfg1, waShell, sizeof(waShell), NORMALPRIO);
|