Rename alarm_enable to rtc_alarm_enabled; mark inline
This commit is contained in:
parent
5a0f9fcb7d
commit
9b9b721406
|
@ -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 */
|
||||
|
||||
|
|
Loading…
Reference in New Issue