-
关于启动PTP时间戳功能后,网络就ping不通了的问题
原先网络都能够ping通,但起用了下面代码后,网络就ping不通了。NewState为ENABLEvoidETH_PTPTimeStampCmd(FunctionalStateNewState){/*Checktheparameters*/assert_param(IS_FUNCTIONAL_STATE(NewState));if(NewState!=DISABLE){/*EnablethePTPtimestampfortransmitandreceiveframes*/ETH->PTPTSCR|=ETH_PTPTSCR_TSE;}else{/*DisablethePTPtimestampfortransmitandreceiveframes*/ETH->PTPTSCR&=(~(uint32_t)ETH_PTPTSCR_TSE);}}
2022-10-31 1