Skip to content

Commit

Permalink
Adjust timestamp offsets for LAN8710A PHY
Browse files Browse the repository at this point in the history
  • Loading branch information
Andy Lucas committed Jun 11, 2014
1 parent 5404d87 commit fd7fe1e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions module_ethernet/src/full/ethernet_rx_server.xc
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
#include <xscope.h>

#ifndef ETHERNET_RX_PHY_TIMER_OFFSET
#define ETHERNET_RX_PHY_TIMER_OFFSET -50
#define ETHERNET_RX_PHY_TIMER_OFFSET -48
#endif

typedef struct
Expand Down Expand Up @@ -215,7 +215,7 @@ void mac_rx_send_frame1(int p,
link <: datum;
dptr += 4;
}
link <: mii_packet_get_timestamp(p);
link <: mii_packet_get_timestamp(p) + ETHERNET_RX_PHY_TIMER_OFFSET;;

}
}
Expand Down Expand Up @@ -262,7 +262,7 @@ void mac_rx_send_frame0(mii_packet_t &p,
for (;i < (length+3)>>2;i++) {
link <: p.data[i];
}
link <: p.timestamp;
link <: p.timestamp + ETHERNET_RX_PHY_TIMER_OFFSET;;

}
}
Expand Down
2 changes: 1 addition & 1 deletion module_ethernet/src/full/ethernet_tx_server.xc
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#endif

#ifndef ETHERNET_TX_PHY_TIMER_OFFSET
#define ETHERNET_TX_PHY_TIMER_OFFSET 5
#define ETHERNET_TX_PHY_TIMER_OFFSET 48
#endif

#define MAX_LINKS 10
Expand Down

0 comments on commit fd7fe1e

Please sign in to comment.