targets/TARGET_STMBLUE/Periph_Driver/src/BlueNRG1_rtc.c
void RTC_Init(RTC_InitType* RTC_InitStruct)
{  
  /* Check the parameters */
  assert_param(IS_RTC_TIMER_MODE(RTC_InitStruct->RTC_operatingMode));
  assert_param(IS_PATTERN(RTC_InitStruct->RTC_PATTERN_SIZE));

  RTC->TCR_b.OS = RTC_InitStruct->RTC_operatingMode;
  RTC->TCR_b.SP = RTC_InitStruct->RTC_PATTERN_SIZE;

  RTC->TLR1 = RTC_InitStruct->RTC_TLR1;
  RTC->TLR2 = RTC_InitStruct->RTC_TLR2;
  RTC->TPR1 = RTC_InitStruct->RTC_PATTERN1;
  RTC->TPR2 = RTC_InitStruct->RTC_PATTERN2;
  RTC->TPR3 = RTC_InitStruct->RTC_PATTERN3;
  RTC->TPR4 = RTC_InitStruct->RTC_PATTERN4;

}
/**
  * @brief  Initializes the RTC peripheral according to the specified
  *         parameters in the RTC_InitStruct.
  * @param  RTC_InitStruct: pointer to a @ref RTC_InitType structure that
  *         contains the configuration information for the specified RTC peripheral.
  * @retval None
  */
@brief  Initializes the RTC peripheral according to the specified
parameters in the RTC_InitStruct.
@param  RTC_InitStruct: pointer to a @ref RTC_InitType structure that
contains the configuration information for the specified RTC peripheral.
@retval None
@brief Initializes the RTC peripheral according to the specified parameters in the RTC_InitStruct . @param RTC_InitStruct : pointer to a @ref RTC_InitType structure that contains the configuration information for the specified RTC peripheral . @retval None
void RTC_Init(RTC_InitType* RTC_InitStruct)
{  
  assert_param(IS_RTC_TIMER_MODE(RTC_InitStruct->RTC_operatingMode));
  assert_param(IS_PATTERN(RTC_InitStruct->RTC_PATTERN_SIZE));
  RTC->TCR_b.OS = RTC_InitStruct->RTC_operatingMode;
  RTC->TCR_b.SP = RTC_InitStruct->RTC_PATTERN_SIZE;
  RTC->TLR1 = RTC_InitStruct->RTC_TLR1;
  RTC->TLR2 = RTC_InitStruct->RTC_TLR2;
  RTC->TPR1 = RTC_InitStruct->RTC_PATTERN1;
  RTC->TPR2 = RTC_InitStruct->RTC_PATTERN2;
  RTC->TPR3 = RTC_InitStruct->RTC_PATTERN3;
  RTC->TPR4 = RTC_InitStruct->RTC_PATTERN4;
}
void RTC_Init ( RTC_InitType * RTC_InitStruct ) { assert_param ( IS_RTC_TIMER_MODE ( RTC_InitStruct -> RTC_operatingMode ) ) ; assert_param ( IS_PATTERN ( RTC_InitStruct -> RTC_PATTERN_SIZE ) ) ; RTC -> TCR_b . OS = RTC_InitStruct -> RTC_operatingMode ; RTC -> TCR_b . SP = RTC_InitStruct -> RTC_PATTERN_SIZE ; RTC -> TLR1 = RTC_InitStruct -> RTC_TLR1 ; RTC -> TLR2 = RTC_InitStruct -> RTC_TLR2 ; RTC -> TPR1 = RTC_InitStruct -> RTC_PATTERN1 ; RTC -> TPR2 = RTC_InitStruct -> RTC_PATTERN2 ; RTC -> TPR3 = RTC_InitStruct -> RTC_PATTERN3 ; RTC -> TPR4 = RTC_InitStruct -> RTC_PATTERN4 ; }
@brief  Initializes the RTC peripheral according to the specified
         parameters in the RTC_InitStruct.
@brief Initializes the RTC peripheral according to the specified parameters in the RTC_InitStruct .
/* Check the parameters */