Question about function in ethernet reference design

Technical discussions related to any XMOS development kit or reference design. Eg XK-1A, sliceKIT, etc.
Post Reply
User avatar
gerrykurz
XCore Addict
Posts: 204
Joined: Sun Jun 01, 2014 10:25 pm

Question about function in ethernet reference design

Post by gerrykurz »

In the ethernet module, in the ethernet_phy_reset.h file is the following:

inline void eth_phy_reset(ethernet_reset_interface_t eth_rst) {}

and in the ethernet_phy_reset.xc file is the following:

extern inline void eth_phy_reset(ethernet_reset_interface_t eth_rst);

and in the main function is the function call to eth_phy_reset:

on ETHERNET_DEFAULT_TILE:
{
char mac_address[6];
otp_board_info_get_mac(otp_ports, 0, mac_address);
eth_phy_reset(eth_rst);
smi_init(smi);
eth_phy_config(1, smi);
ethernet_server(mii,
null,
mac_address,
rx, 1,
tx, 1);
}

eth_rst is an int that is set to 0.

My question is, what exactly does this function do?


Post Reply