void * | DM2_EmacInit (uint8_t mode, char *mac_addr_str, void(*link_status)(unsigned char)) |
Initialize EMAC module. More... | |
Main hardware initialization function
void * DM2_EmacInit | ( | uint8_t | mode, |
char * | mac_addr_str, | ||
void(*)(unsigned char) | link_status | ||
) |
Initialization functions for D.Module2.DM642, D.Module2.C6747, D.Module2.C6657 and D.Module2.DM648 (VibRunner)
This function resets and initializes EMAC and PHY, assigns a desired MAC address, installs the link status callback function and starts the auto-negotiation process, if this mode is requested.
mode | - AUTO_NEG, HDX_10, HDX_100, FDX_10, FDX_100, FDX_1000 |
mac_addr_str | - MAC address string or NULL |
link_status | - Link status callback function (ref. link_status() ); if NULL is specified, no link status function is used |