mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 00:14:22 +08:00
STM32: Add logic to attach the RTC alarm EXTI interrupt
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4947 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
@@ -51,9 +51,11 @@
|
|||||||
#include <nuttx/rtc.h>
|
#include <nuttx/rtc.h>
|
||||||
#include <arch/irq.h>
|
#include <arch/irq.h>
|
||||||
|
|
||||||
|
#include "up_internal.h"
|
||||||
#include "stm32_pm.h"
|
#include "stm32_pm.h"
|
||||||
#include "stm32_rcc.h"
|
#include "stm32_rcc.h"
|
||||||
#include "up_internal.h"
|
#include "stm32_exti.h"
|
||||||
|
|
||||||
#include "stm3210e-internal.h"
|
#include "stm3210e-internal.h"
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
@@ -156,6 +158,10 @@ static void up_idlepm(void)
|
|||||||
case PM_STANDBY:
|
case PM_STANDBY:
|
||||||
{
|
{
|
||||||
#ifdef CONFIG_RTC_ALARM
|
#ifdef CONFIG_RTC_ALARM
|
||||||
|
/* Disable RTC Alarm interrupt */
|
||||||
|
|
||||||
|
stm32_exti_alarm(true, true, true, NULL);
|
||||||
|
|
||||||
/* Configure the RTC alarm to Auto Wake the system */
|
/* Configure the RTC alarm to Auto Wake the system */
|
||||||
|
|
||||||
(void)up_rtc_gettime(&alarmtime);
|
(void)up_rtc_gettime(&alarmtime);
|
||||||
|
|||||||
Reference in New Issue
Block a user