Add PM support for the STM32F4Discovery -- still a work in progress

git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4976 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
patacongo 2012-07-25 13:35:36 +00:00
parent de34678cb0
commit 569e4ef123

View File

@ -626,8 +626,8 @@ int up_rtcinitialize(void)
/* Then attach the ALARM interrupt handler */ /* Then attach the ALARM interrupt handler */
irq_attach(STM32_IRQ_RTC, rtc_interrupt); irq_attach(STM32_IRQ_RTC_WKUP, rtc_interrupt);
up_enable_irq(STM32_IRQ_RTC); up_enable_irq(STM32_IRQ_RTC_WKUP);
#endif #endif
g_rtc_enabled = true; g_rtc_enabled = true;
@ -813,7 +813,7 @@ int up_rtc_settime(FAR const struct timespec *tp)
************************************************************************************/ ************************************************************************************/
#ifdef CONFIG_RTC_ALARM #ifdef CONFIG_RTC_ALARM
int up_rtc_setalarm(FAR const struct timespec *tp, alarmcb_t callback); int up_rtc_setalarm(FAR const struct timespec *tp, alarmcb_t callback)
{ {
irqstate_t flags; irqstate_t flags;
int ret = -EBUSY; int ret = -EBUSY;