Commit 196097cd authored by Peter Jansweijer's avatar Peter Jansweijer

arch-wrpc: use new endpoint API also for mode abscal

parent 58d7be56
......@@ -6,8 +6,10 @@
* Released to the public domain
*/
#include <dev/endpoint.h>
#include <ppsi/ppsi.h>
#include "wr-api.h"
#include "board.h"
/*
* This is the last WR state: ack the other party and go master or slave.
......@@ -40,14 +42,13 @@ int wr_link_on(struct pp_instance *ppi, unsigned char *pkt, int plen)
* we can't include wrpc headers, not available in wrs builds
*/
extern int ptp_mode;
extern int ep_get_bitslide(void);
if (ptp_mode == 4 /* WRC_MODE_ABSCAL */) {
ppi->next_state = WRS_ABSCAL;
/* print header for the serial port stream of stamps */
pp_printf("### t4.phase is already corrected for bitslide\n");
pp_printf("t1: t4: "
"bitslide: %d\n",ep_get_bitslide());
"bitslide: %d\n",ep_get_bitslide(&wrc_endpoint_dev));
pp_printf(" sec. ns.pha sec. ns.pha\n");
}
#endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment