44 #define RTC_LSB_MASK ((uint32_t)0x0000FFFF) 45 #define PRLH_MSB_MASK ((uint32_t)0x000F0000) 90 void RTC_ITConfig(uint16_t RTC_IT, FunctionalState NewState) 102 RTC->CRH &= (uint16_t)~RTC_IT;
137 return (((uint32_t)
RTC->CNTH << 16 ) | tmp) ;
149 RTC->CNTH = CounterValue >> 16;
182 RTC->ALRH = AlarmValue >> 16;
196 tmp = ((uint32_t)
RTC->DIVH & (uint32_t)0x000F) << 16;
251 if ((
RTC->CRL & RTC_FLAG) != (uint16_t)
RESET)
279 RTC->CRL &= (uint16_t)~RTC_FLAG;
298 if (((
RTC->CRH & RTC_IT) != (uint16_t)
RESET) && (bitstatus != (uint16_t)RESET))
324 RTC->CRL &= (uint16_t)~RTC_IT;
void RTC_SetCounter(uint32_t CounterValue)
Sets the RTC counter value.
uint32_t RTC_GetDivider(void)
Gets the RTC divider value.
#define IS_RTC_GET_FLAG(FLAG)
void RTC_ClearFlag(uint16_t RTC_FLAG)
Clears the RTC's pending flags.
#define IS_RTC_GET_IT(IT)
void assert_param(int val)
This file contains all the functions prototypes for the RTC firmware library.
#define IS_FUNCTIONAL_STATE(STATE)
#define IS_RTC_CLEAR_FLAG(FLAG)
void RTC_WaitForLastTask(void)
Waits until last write operation on RTC registers has finished.
FlagStatus RTC_GetFlagStatus(uint16_t RTC_FLAG)
Checks whether the specified RTC flag is set or not.
ITStatus RTC_GetITStatus(uint16_t RTC_IT)
Checks whether the specified RTC interrupt has occurred or not.
void RTC_SetAlarm(uint32_t AlarmValue)
Sets the RTC alarm value.
void RTC_EnterConfigMode(void)
Enters the RTC configuration mode.
void RTC_ClearITPendingBit(uint16_t RTC_IT)
Clears the RTC's interrupt pending bits.
void RTC_WaitForSynchro(void)
Waits until the RTC registers (RTC_CNT, RTC_ALR and RTC_PRL) are synchronized with RTC APB clock...
void RTC_ExitConfigMode(void)
Exits from the RTC configuration mode.
#define IS_RTC_PRESCALER(PRESCALER)
uint32_t RTC_GetCounter(void)
Gets the RTC counter value.
void RTC_SetPrescaler(uint32_t PrescalerValue)
Sets the RTC prescaler value.