mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-24 03:33:35 +08:00
Add PM support for the STM32F4Discovery -- still a work in progress
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@4976 7fd9a85b-ad96-42d3-883c-3090e2eb8679
This commit is contained in:
@@ -626,8 +626,8 @@ int up_rtcinitialize(void)
|
||||
|
||||
/* Then attach the ALARM interrupt handler */
|
||||
|
||||
irq_attach(STM32_IRQ_RTC, rtc_interrupt);
|
||||
up_enable_irq(STM32_IRQ_RTC);
|
||||
irq_attach(STM32_IRQ_RTC_WKUP, rtc_interrupt);
|
||||
up_enable_irq(STM32_IRQ_RTC_WKUP);
|
||||
#endif
|
||||
|
||||
g_rtc_enabled = true;
|
||||
@@ -813,7 +813,7 @@ int up_rtc_settime(FAR const struct timespec *tp)
|
||||
************************************************************************************/
|
||||
|
||||
#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;
|
||||
int ret = -EBUSY;
|
||||
|
||||
Reference in New Issue
Block a user