lwip 1.4 - DM9161A PHY
DM9161A PHY status and control. More...
Go to the source code of this file.
Functions | |
static s32_t | lpc_update_phy_sts (struct netif *netif, u32_t linksts, u32_t sdsts) |
Update PHY status from passed value. | |
err_t | lpc_phy_init (struct netif *netif, int rmii) |
Initialize the DM9161A PHY. | |
Variables | |
static PHY_STATUS_TYPE | physts |
PHY update flags. | |
static PHY_STATUS_TYPE | olddphysts |
Last PHY update flags, used for determing if something has changed. | |
static s32_t | phyustate |
PHY update counter for state machine. |
Detailed Description
DM9161A PHY status and control.
- Version:
- 1.0
- Date:
- 14 Jan. 2013
: 1. How to test : import http://mbed.org/users/mbed_official/code/TCPSocket_HelloWorld/ into the mbed compiler.
2. Open EthernetInterface-eth folder Delete 'lpc_phy_dp83848.c'. Copy 'lpc_phy_DM9161A.c' (this file) into this folder.
3. When used with the Mini-DK hardware: Modify EthernetInterface\lwip-eth\arch\lpc_emac_config.h: Change define LPC_PHYDEF_PHYADDR 1 to define LPC_PHYDEF_PHYADDR 19
Add following MAC address definition in main.cpp (before 'EthernetInterface eth;'). extern "C" void mbed_mac_address(char * mac) { // define your own MAC Address mac[0] = 0x00; mac[1] = 0x1F; mac[2] = 0x33; mac[3] = 0x42; mac[4] = 0xFC; mac[5] = 0x6F; };
Software that is described herein is for illustrative purposes only which provides customers with programming information regarding the products. This software is supplied "AS IS" without any warranties. NXP Semiconductors assumes no responsibility or liability for the use of the software, conveys no license or title under any patent, copyright, or mask work right to the product. NXP Semiconductors reserves the right to make changes in the software without notification. NXP Semiconductors also make no representation or warranty that such application will be suitable for the specified use without further testing or modification.
Definition in file lpc_phy_DM9161A.c.
Generated on Tue Jul 12 2022 20:48:42 by 1.7.2