1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-18 12:52:44 +01:00

Merge pull request #7426 from OlegHahm/stm32f1_rtt_fix

stm32f1: rtt: declare functions static
This commit is contained in:
Martine Lenders 2017-08-01 16:53:44 +02:00 committed by GitHub
commit 170277967c

View File

@ -35,8 +35,8 @@
#define RTT_FLAG_ALR ((uint16_t)0x0002) /**< Alarm flag */
#define RTT_FLAG_SEC ((uint16_t)0x0001) /**< Second flag */
inline void _rtt_enter_config_mode(void);
inline void _rtt_leave_config_mode(void);
static inline void _rtt_enter_config_mode(void);
static inline void _rtt_leave_config_mode(void);
/*
* callback and argument for an active alarm
@ -170,7 +170,7 @@ void rtt_poweroff(void)
periph_clk_dis(APB1, (RCC_APB1ENR_BKPEN|RCC_APB1ENR_PWREN)); /* disable BKP and PWR, Clock */
}
inline void _rtt_enter_config_mode(void)
static inline void _rtt_enter_config_mode(void)
{
/* Loop until RTOFF flag is set */
while (!(RTT_DEV->CRL & RTT_FLAG_RTOFF)) {}
@ -178,7 +178,7 @@ inline void _rtt_enter_config_mode(void)
RTT_DEV->CRL |= RTC_CRL_CNF;
}
inline void _rtt_leave_config_mode(void)
static inline void _rtt_leave_config_mode(void)
{
/* leave configuration mode */
RTT_DEV->CRL &= ~RTC_CRL_CNF;