问答

汇集网友智慧,解决技术难题

21ic问答首页 - 关于启动PTP时间戳功能后,网络就ping不通了的问题

state TE TI ST 网络 pi

关于启动PTP时间戳功能后,网络就ping不通了的问题

zwxaxiang2022-10-31
原先网络都能够ping通,但起用了下面代码后,网络就ping不通了。NewState为ENABLEvoid ETH_PTPTimeStampCmd(FunctionalState NewState){
  /* Check the parameters */
  assert_param(IS_FUNCTIONAL_STATE(NewState));

  if (NewState != DISABLE)
  {
    /* Enable the PTP time stamp for transmit and receive frames */
    ETH->PTPTSCR |= ETH_PTPTSCR_TSE;
  }
  else
  {
    /* Disable the PTP time stamp for transmit and receive frames */
    ETH->PTPTSCR &= (~(uint32_t)ETH_PTPTSCR_TSE);
  }
}


回答 +关注 18
1729人浏览 1人回答问题 分享 举报
1 个回答

您需要登录后才可以回复 登录 | 注册