Commit 9a4db26d authored by Tomasz Wlostowski's avatar Tomasz Wlostowski

dev/endpoint.c: updated deltaTx/Rx calculation

parent eb183c04
...@@ -114,8 +114,8 @@ int ep_link_up() ...@@ -114,8 +114,8 @@ int ep_link_up()
int ep_get_deltas(uint32_t *delta_tx, uint32_t *delta_rx) int ep_get_deltas(uint32_t *delta_tx, uint32_t *delta_rx)
{ {
*delta_tx = 0; *delta_tx = 0;
*delta_rx = 15000 - 7000 + 195000 + UIS_PER_SERIAL_BIT * MDIO_WR_SPEC_BSLIDE_R(pcs_read(MDIO_REG_WR_SPEC)); *delta_rx = 15000 - 7000 + 195000 + 32000 + UIS_PER_SERIAL_BIT * MDIO_WR_SPEC_BSLIDE_R(pcs_read(MDIO_REG_WR_SPEC)) + 2800;
} }
void ep_show_counters() void ep_show_counters()
......
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