Skip to content
Snippets Groups Projects
Commit 9b9b7214 authored by Gregory Nutt's avatar Gregory Nutt
Browse files

Rename alarm_enable to rtc_alarm_enabled; mark inline

parent 5a0f9fcb
No related branches found
No related tags found
No related merge requests found
......@@ -158,7 +158,7 @@ static int rtchw_set_alrmar(rtc_alarmreg_t alarmreg);
static int rtchw_check_alrbwf(void);
static int rtchw_set_alrmbr(rtc_alarmreg_t alarmreg);
#endif
static void alarm_enable(void);
static inline void rtc_enable_alarm(void);
#endif
/****************************************************************************
......@@ -814,7 +814,7 @@ rtchw_set_alrmbr_exit:
#endif
/****************************************************************************
* Name: alarm_enable
* Name: rtc_enable_alarm
*
* Description:
* Enable ALARM interrupts
......@@ -828,7 +828,7 @@ rtchw_set_alrmbr_exit:
****************************************************************************/
#ifdef CONFIG_RTC_ALARM
static void alarm_enable(void)
static inline void rtc_enable_alarm(void)
{
/* Is the alarm already enabled? */
......@@ -1347,7 +1347,7 @@ int stm32_rtc_setalarm(FAR struct alm_setalarm_s *alminfo)
/* Make sure the the alarm interrupt is enabled at the NVIC */
alarm_enable();
rtc_enable_alarm();
/* REVISIT: Should test that the time is in the future */
......
......@@ -154,7 +154,7 @@ static int rtchw_check_alrawf(void);
static int rtchw_check_alrbwf(void);
static int rtchw_set_alrmar(rtc_alarmreg_t alarmreg);
static int rtchw_set_alrmbr(rtc_alarmreg_t alarmreg);
static void alarm_enable(void);
static inline void rtc_enable_alarm(void);
#endif
/************************************************************************************
......@@ -769,7 +769,7 @@ rtchw_set_alrmbr_exit:
#endif
/****************************************************************************
* Name: alarm_enable
* Name: rtc_enable_alarm
*
* Description:
* Enable ALARM interrupts
......@@ -783,7 +783,7 @@ rtchw_set_alrmbr_exit:
****************************************************************************/
#ifdef CONFIG_RTC_ALARM
static void alarm_enable(void)
static inline void rtc_enable_alarm(void)
{
/* Is the alarm already enabled? */
......@@ -1268,7 +1268,7 @@ int stm32l4_rtc_setalarm(FAR struct alm_setalarm_s *alminfo)
/* Make sure the the alarm interrupt is enabled at the NVIC */
alarm_enable();
rtc_enable_alarm();
/* REVISIT: Should test that the time is in the future */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment