/* Enables or Disables the TimeStamp on Tamper Detection Event.  */
void RTC_TimeStampOnTamperDetectionCmd(FunctionalState NewState)
/* Enables or Disables the TimeStamp on Tamper Detection Event.  */
void RTC_TimeStampOnTamperDetectionCmd(FunctionalState NewState)
{
  assert_param(IS_FUNCTIONAL_STATE(NewState));
  if (NewState != DISABLE)
  {
     RTC->TMPCFG |= (uint32_t)RTC_TMPCFG_TPTS;
  }
  else
  {
     RTC->TMPCFG &= (uint32_t)~RTC_TMPCFG_TPTS;
  }
}