From d9d6cffd9e1aaa7ef5cadd43b04c7680e1b60f92 Mon Sep 17 00:00:00 2001 From: barthess Date: Mon, 13 Jul 2015 20:11:27 +0000 Subject: 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 --- testhal/STM32/STM32F4xx/RTC/main.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'testhal/STM32/STM32F4xx/RTC/main.c') 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); -- cgit v1.2.3