mirror of https://github.com/ARMmbed/mbed-os.git
The value of 2 can't fit in a 1 bit wide field.
The phy_speed_100mbs, phy_full_duplex, and phy_link_active fields of PHY_STATUS_TYPE are 1 bit wide but lpc_phy_init() attempted to initialize them to a value of 2. I switched the initializations to be 0 instead and it still generated the same .bin image.pull/31/head
parent
962dd8bd8f
commit
282c354ba7
|
@ -228,9 +228,9 @@ err_t lpc_phy_init(struct netif *netif, int rmii)
|
||||||
u32_t tmp;
|
u32_t tmp;
|
||||||
s32_t i;
|
s32_t i;
|
||||||
|
|
||||||
physts.phy_speed_100mbs = olddphysts.phy_speed_100mbs = 2;
|
physts.phy_speed_100mbs = olddphysts.phy_speed_100mbs = 0;
|
||||||
physts.phy_full_duplex = olddphysts.phy_full_duplex = 2;
|
physts.phy_full_duplex = olddphysts.phy_full_duplex = 0;
|
||||||
physts.phy_link_active = olddphysts.phy_link_active = 2;
|
physts.phy_link_active = olddphysts.phy_link_active = 0;
|
||||||
phyustate = 0;
|
phyustate = 0;
|
||||||
|
|
||||||
/* Only first read and write are checked for failure */
|
/* Only first read and write are checked for failure */
|
||||||
|
|
Loading…
Reference in New Issue