1. 在使用RTC的时间戳,从字面意思是,PC13的上升沿可以触发时间戳的中断函数

  /*##-1- Configure the Time Stamp peripheral ################################*/
  /*  RTC TimeStamp generation: TimeStamp Rising Edge on PC.13 Pin */
  HAL_RTCEx_SetTimeStamp_IT(&RtcHandle, RTC_TIMESTAMPEDGE_RISING, RTC_TIMESTAMPPIN_DEFAULT);

2. 中断回调函数,理解就是PC13的上升沿可以触发RTC的时间戳

/**
  * @brief  This function handles Tamper interrupt request.
  */
void TAMP_STAMP_IRQHandler(void)
{
  HAL_RTCEx_TamperTimeStampIRQHandler(&RtcHandle);
}

 

相关文章:

  • 2021-09-08
  • 2021-12-23
  • 2021-04-12
  • 2021-12-08
  • 2021-11-18
  • 2021-04-01
  • 2022-01-22
  • 2022-02-21
猜你喜欢
  • 2021-06-17
  • 2021-09-07
  • 2021-07-04
  • 2022-12-23
  • 2022-12-23
  • 2021-11-23
  • 2022-01-12
相关资源
相似解决方案